diff --git a/background/background.js b/background/background.js index 420287c2..0ea3e0cf 100644 --- a/background/background.js +++ b/background/background.js @@ -50,12 +50,6 @@ window.API_METHODS = Object.assign(window.API_METHODS || {}, { return browser.runtime.openOptionsPage() .then(() => new Promise(resolve => setTimeout(resolve, 100))) .then(() => msg.broadcastExtension({method: 'optionsCustomizeHotkeys'})); - }, - - installType() { - // types: "admin", "development", "normal", "sideload" & "other" - // "normal" = addon installed from webstore - return chrome.management.getSelf(info => localStorage.installType = info.installType); } }); @@ -150,8 +144,9 @@ chrome.runtime.onInstalled.addListener(({reason}) => { }); // themes may change delete localStorage.codeMirrorThemes; - // save install type - window.API_METHODS.installType(); + // save install type: "admin", "development", "normal", "sideload" or "other" + // "normal" = addon installed from webstore + chrome.management.getSelf(info => localStorage.installType = info.installType); }); // *************************************************************************