From aa2ae6d06381eac9ddb067fc5559df724727881b Mon Sep 17 00:00:00 2001 From: hackademix Date: Fri, 12 Aug 2022 21:42:17 +0200 Subject: [PATCH] [TabGuard] Abort the load when the warning dialog is closed by any mean except the OK button. --- src/bg/TabGuard.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bg/TabGuard.js b/src/bg/TabGuard.js index 61d06de..e97967f 100644 --- a/src/bg/TabGuard.js +++ b/src/bg/TabGuard.js @@ -135,7 +135,7 @@ var TabGuard = (() => { title: _("TabGuard_title"), message: _("TabGuard_message", [tabDomain, [...otherDomains].join(", ")]), options}); - if (ret.button === 1) return {cancel: true}; + if (ret.button !== 0) return {cancel: true}; let list = ret.option === 0 ? filteredGroups : allowedGroups; otherDomains.add(tabDomain); for (let d of otherDomains) list[d] = otherDomains;