File: reload.js

package info (click to toggle)
vimium 2.1.2-1.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,212 kB
  • sloc: javascript: 12,766; makefile: 7
file content (7 lines) | stat: -rw-r--r-- 339 bytes parent folder | download
1
2
3
4
5
6
7
// Used as part of a debugging workflow when developing the extension.
(async () => {
  await chrome.runtime.sendMessage({ handler: "reloadVimiumExtension" });
  // NOTE(philc): This page's window is supposed to automatically close when the extension reloads
  // itself, but I've noticed sometimes this fails.
  globalThis.close();
})();