From 9250d5c62406265d5fed06ad94fe92dfa72c71a5 Mon Sep 17 00:00:00 2001 From: Rob Garrison Date: Tue, 20 Nov 2018 19:48:52 -0600 Subject: [PATCH] Remove unnecessary API method --- background/background.js | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) 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); }); // *************************************************************************