[TabGuard] Abort the load when the warning dialog is closed by any mean except the OK button.

This commit is contained in:
hackademix 2022-08-12 21:42:17 +02:00
parent d0a2fea73e
commit aa2ae6d063
1 changed files with 1 additions and 1 deletions

View File

@ -135,7 +135,7 @@ var TabGuard = (() => {
title: _("TabGuard_title"), title: _("TabGuard_title"),
message: _("TabGuard_message", [tabDomain, [...otherDomains].join(", ")]), message: _("TabGuard_message", [tabDomain, [...otherDomains].join(", ")]),
options}); options});
if (ret.button === 1) return {cancel: true}; if (ret.button !== 0) return {cancel: true};
let list = ret.option === 0 ? filteredGroups : allowedGroups; let list = ret.option === 0 ? filteredGroups : allowedGroups;
otherDomains.add(tabDomain); otherDomains.add(tabDomain);
for (let d of otherDomains) list[d] = otherDomains; for (let d of otherDomains) list[d] = otherDomains;