Small refining #292
This commit is contained in:
parent
2b048f6af1
commit
854ef6115c
|
@ -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) })
|
||||
|
|
Loading…
Reference in New Issue