diff --git a/src/pages/background/background.js b/src/pages/background/background.js index 814c1af..ca35811 100644 --- a/src/pages/background/background.js +++ b/src/pages/background/background.js @@ -25,7 +25,7 @@ browser.runtime.onInstalled.addListener( async details => { // if (details.reason == 'install') { if (details.reason == 'install' || details.reason == "update") { - browser.tabs.create({ url: browser.extension.getURL("/pages/background/reset_warning.html") }); + if (details.reason == "update") browser.tabs.create({ url: browser.extension.getURL("/pages/background/reset_warning.html") }); fetch('/instances/blocklist.json').then(response => response.text()).then(async data => { await browser.storage.local.clear(); await browser.storage.local.set({ cloudflareList: JSON.parse(data) })