Show popup when installed or updated
This commit is contained in:
parent
f961c205a7
commit
8614c7a516
1 changed files with 4 additions and 1 deletions
|
@ -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();
|
||||
});
|
||||
|
||||
|
|
Reference in a new issue