diff options
Diffstat (limited to 'src/background/index.js')
-rw-r--r-- | src/background/index.js | 5 |
1 files changed, 4 insertions, 1 deletions
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(); }); |