forked from XimeX/usrspace-browser-addon
cleanup data on startup
This commit is contained in:
parent
cbf21a24ad
commit
45c8deb007
|
@ -52,7 +52,7 @@ async function fetchNewData() {
|
|||
type: 'basic',
|
||||
title: browser.i18n.getMessage('stateNotificationTitle'),
|
||||
message: browser.i18n.getMessage('stateNotificationMessage', state),
|
||||
iconUrl: browser.runtime.getURL('icons/favicon.svg')
|
||||
iconUrl: browser.runtime.getURL('icons/favicon.svg'),
|
||||
});
|
||||
}
|
||||
}
|
||||
|
@ -66,6 +66,10 @@ async function fetchNewData() {
|
|||
}
|
||||
}
|
||||
|
||||
browser.runtime.onStartup.addListener(async () => {
|
||||
await browser.storage.local.remove(['calendar', 'spaceApi']);
|
||||
});
|
||||
|
||||
/**
|
||||
* @param {Alarm} alarm
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue