diff --git a/src/background/index.js b/src/background/index.js index 3e7492d..29aa92b 100644 --- a/src/background/index.js +++ b/src/background/index.js @@ -4,7 +4,10 @@ import VersionController from './controllers/VersionController'; new SettingController().reload(); -browser.runtime.onInstalled.addListener(() => { +browser.runtime.onInstalled.addListener((details) => { + if (details.reason !== 'install' && details.reason !== 'update') { + return; + } new VersionController().notify(); });