diff --git a/src/_locales b/src/_locales
index 26e17db..66bcca0 160000
--- a/src/_locales
+++ b/src/_locales
@@ -1 +1 @@
-Subproject commit 26e17db70ce276ab5ccb5ae582e5c142f12ba655
+Subproject commit 66bcca02c98ca6739e9722f9ce80c4c71161a24b
diff --git a/src/confirm-page.html b/src/confirm-page.html
index 259af1a..34d53a1 100644
--- a/src/confirm-page.html
+++ b/src/confirm-page.html
@@ -23,8 +23,21 @@
-
-
+
+
+
diff --git a/src/js/confirm-page.js b/src/js/confirm-page.js
index 21a445c..bb153a3 100644
--- a/src/js/confirm-page.js
+++ b/src/js/confirm-page.js
@@ -12,22 +12,39 @@ async function load() {
denySubmit(redirectUrl);
});
+ document.getElementById("deny-no-container").addEventListener("click", (e) => {
+ e.preventDefault();
+ denySubmit(redirectUrl);
+ });
+
const container = await browser.contextualIdentities.get(cookieStoreId);
const currentContainer = currentCookieStoreId ? await browser.contextualIdentities.get(currentCookieStoreId) : null;
- const currentContainerName = currentContainer ? currentContainer.name : "";
+ const currentContainerName = currentContainer ? setDenyButton(currentContainer.name) : setDenyButton("");
document.querySelectorAll("[data-message-id]").forEach(el => {
const elementData = el.dataset;
const containerName = elementData.messageArg === "container-name" ? container.name : currentContainerName;
el.textContent = browser.i18n.getMessage(elementData.messageId, containerName);
});
-
+
document.getElementById("confirm").addEventListener("click", (e) => {
e.preventDefault();
confirmSubmit(redirectUrl, cookieStoreId);
});
}
+function setDenyButton(currentContainerName) {
+ const buttonDeny = document.getElementById("deny");
+ const buttonDenyNoContainer = document.getElementById("deny-no-container");
+
+ if (currentContainerName) {
+ buttonDenyNoContainer.style.display = "none";
+ return currentContainerName;
+ }
+ buttonDeny.style.display = "none";
+ return;
+}
+
function appendFavicon(pageUrl, redirectUrlElement) {
const origin = new URL(pageUrl).origin;
const favIconElement = Utils.createFavIconElement(`${origin}/favicon.ico`);