diff options
Diffstat (limited to 'src/pages/background')
-rw-r--r-- | src/pages/background/background.js | 4 | ||||
-rw-r--r-- | src/pages/background/reset_warning.html | 9 |
2 files changed, 5 insertions, 8 deletions
diff --git a/src/pages/background/background.js b/src/pages/background/background.js index ca358118..bf992161 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") { - if (details.reason == "update") browser.tabs.create({ url: browser.extension.getURL("/pages/background/reset_warning.html") }); + if (details.reason == "update") browser.tabs.create({ url: browser.runtime.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) }) @@ -64,7 +64,7 @@ let incognitoInit = false; browser.tabs.onCreated.addListener( tab => { if (!incognitoInit && tab.incognito) { - browser.tabs.create({ url: browser.extension.getURL("/pages/background/incognito.html") }); + browser.tabs.create({ url: browser.runtime.getURL("/pages/background/incognito.html") }); incognitoInit = true; } } diff --git a/src/pages/background/reset_warning.html b/src/pages/background/reset_warning.html index bee174e8..a3feee72 100644 --- a/src/pages/background/reset_warning.html +++ b/src/pages/background/reset_warning.html @@ -5,7 +5,7 @@ <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1" /> - <title data-localise="__MSG_instanceIsOff__">Instance is offline</title> + <title data-localise="__MSG_instanceIsOff__">Reset Warning</title> <link href="../stylesheets/styles.css" rel="stylesheet" /> <style> body { @@ -24,7 +24,7 @@ width: 80%; } - div.logo{ + div.logo { display: flex; } @@ -46,11 +46,8 @@ <p data-localise="__MSG_instanceOffline__">All settings have been reset as they're incompatible with the previous version.</p> <p>Sorry for the inconvenience, but we're going in a fast development process and can't - support nor convert older settings. It will reach at the end a stable plateau though.</p> + support nor convert older settings. It will reach a stable plateau though.</p> </div> - - <script src="instance_offline.js"></script> - <script src="../../assets/javascripts/localise.js"></script> </body> </html> \ No newline at end of file |