Removed unused startup and install event handlers
This commit is contained in:
Родитель
13d3f10e8b
Коммит
fdbeaed8d6
|
@ -27,35 +27,6 @@ async function runOnce() {
|
|||
startStoringJsInstrumentationResultsInDb(variation);
|
||||
}
|
||||
|
||||
/**
|
||||
* Fired when a profile that has this extension installed first starts up.
|
||||
* This event is not fired when a private browsing/incognito profile is started.
|
||||
*/
|
||||
function handleStartup() {
|
||||
console.log("handleStartup", arguments);
|
||||
}
|
||||
|
||||
browser.runtime.onStartup.addListener(handleStartup);
|
||||
|
||||
/**
|
||||
* Fired when the extension is first installed, when the extension is updated
|
||||
* to a new version, and when the browser is updated to a new version.
|
||||
* @param details
|
||||
*/
|
||||
function handleInstalled(details) {
|
||||
console.log("handleInstalled", details.reason, details);
|
||||
}
|
||||
|
||||
browser.runtime.onInstalled.addListener(handleInstalled);
|
||||
|
||||
// todo: on shutdown
|
||||
// Run shutdown-related non-privileged code
|
||||
// Remove db - deleteDb
|
||||
|
||||
// actually start
|
||||
runOnce();
|
||||
|
||||
|
||||
// For devtools messages
|
||||
|
||||
/**
|
||||
|
|
Загрузка…
Ссылка в новой задаче