From 64014cfdf7933bd5991a1717d7e2f110d4222e1f Mon Sep 17 00:00:00 2001 From: ManeraKai Date: Thu, 9 Jun 2022 20:29:05 +0300 Subject: Fixed thing in reddit. Fixed bug in incognito, Fixed localise module error. Bump => 2.1.0 --- src/pages/background/background.js | 2 +- src/pages/errors/instance_offline.html | 9 ++++----- src/pages/errors/instance_offline.js | 5 +++++ 3 files changed, 10 insertions(+), 6 deletions(-) (limited to 'src/pages') diff --git a/src/pages/background/background.js b/src/pages/background/background.js index 0815096b..87e13ad3 100644 --- a/src/pages/background/background.js +++ b/src/pages/background/background.js @@ -139,7 +139,7 @@ browser.tabs.onCreated.addListener( tab => { if (tab.incognito) { incognitoList.push(tab.id); - if (incognitoList.length == 1) browser.tabs.create({ url: browser.runtime.getURL("/pages/background/incognito.html") }); + if (incognitoList.length == 1) browser.tabs.create({ url: browser.runtime.getURL("/pages/background/incognito.html"), active: false }); } } ); diff --git a/src/pages/errors/instance_offline.html b/src/pages/errors/instance_offline.html index 4c47997b..3b7e46d5 100644 --- a/src/pages/errors/instance_offline.html +++ b/src/pages/errors/instance_offline.html @@ -29,14 +29,13 @@
-

This instance is offline, you'll be redirected after 2 seconds +

This instance is offline, you'll be redirected + after 2 seconds

- - + - + \ No newline at end of file diff --git a/src/pages/errors/instance_offline.js b/src/pages/errors/instance_offline.js index ba9dd522..8137ccd0 100644 --- a/src/pages/errors/instance_offline.js +++ b/src/pages/errors/instance_offline.js @@ -1,3 +1,6 @@ +import localise from "../../assets/javascripts/localise.js"; + + const params = new Proxy( new URLSearchParams(window.location.search), { get: (searchParams, prop) => searchParams.get(prop) } @@ -18,3 +21,5 @@ document.getElementById("cancel").addEventListener("click", () => { isCanceled = true; document.getElementById("message").innerHTML = browser.i18n.getMessage('redirectionCanceled'); }) + +localise.localisePage(); \ No newline at end of file -- cgit 1.4.1