fix(scripts): accessing wrong to on installed reason
This commit is contained in:
parent
d1ad9bbe42
commit
0539e4fb85
@ -257,7 +257,7 @@ chrome.runtime.onMessage.addListener((request, sender, responseCallback) => {
|
|||||||
* @description Listens to updates
|
* @description Listens to updates
|
||||||
*/
|
*/
|
||||||
|
|
||||||
chrome.runtime.onInstalled.addListener((reason) => {
|
chrome.runtime.onInstalled.addListener(({ reason }) => {
|
||||||
if (reason === chrome.runtime.OnInstalledReason.UPDATE) {
|
if (reason === chrome.runtime.OnInstalledReason.UPDATE) {
|
||||||
chrome.storage.local.clear();
|
chrome.storage.local.clear();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user