Show popup when installed or updated

jh-changes
Shin'ya Ueoka 6 years ago
parent f961c205a7
commit 8614c7a516
  1. 5
      src/background/index.js

@ -4,7 +4,10 @@ import VersionController from './controllers/VersionController';
new SettingController().reload(); new SettingController().reload();
browser.runtime.onInstalled.addListener(() => { browser.runtime.onInstalled.addListener((details) => {
if (details.reason !== 'install' && details.reason !== 'update') {
return;
}
new VersionController().notify(); new VersionController().notify();
}); });