fix: auto remove incorrect data after update

This commit is contained in:
sethburkart123
2024-06-20 10:01:33 +10:00
parent ba5357561b
commit 1e768c8276
+1
View File
@@ -281,6 +281,7 @@ async function UpdateCurrentValues() {
browser.runtime.onInstalled.addListener(function (event) { browser.runtime.onInstalled.addListener(function (event) {
browser.storage.local.remove(['justupdated']); browser.storage.local.remove(['justupdated']);
browser.storage.local.remove(['data']);
UpdateCurrentValues(); UpdateCurrentValues();
if ( event.reason == 'install', event.reason == 'update' ) { if ( event.reason == 'install', event.reason == 'update' ) {
browser.storage.local.set({ justupdated: true }); browser.storage.local.set({ justupdated: true });