[TabGuard] Abort the load when the warning dialog is closed by any mean except the OK button.
This commit is contained in:
parent
d0a2fea73e
commit
aa2ae6d063
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue