Removed unused startup and install event handlers

This commit is contained in:
Fredrik Wollsén 2018-06-08 12:25:10 +03:00
Родитель 13d3f10e8b
Коммит fdbeaed8d6
1 изменённых файлов: 0 добавлений и 29 удалений

Просмотреть файл

@ -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
/**