File: background.js

package info (click to toggle)
eas4tbsync 1.20-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 1,040 kB
  • sloc: javascript: 5,002; makefile: 22
file content (13 lines) | stat: -rw-r--r-- 492 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
function handleUpdateAvailable(details) {
  console.log("Update available for Eas4TbSync");
}

async function main() {
  // just by registering this listener, updates will not install until next restart
  //messenger.runtime.onUpdateAvailable.addListener(handleUpdateAvailable);

  await messenger.BootstrapLoader.registerChromeUrl([ ["content", "eas4tbsync", "content/"] ]);
  await messenger.BootstrapLoader.registerBootstrapScript("chrome://eas4tbsync/content/bootstrap.js");  
}

main();