Show popup when installed or updated

This commit is contained in:
Shin'ya Ueoka 2019-02-25 21:46:33 +09:00
parent f961c205a7
commit 8614c7a516

View file

@ -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();
});