Fix broken settings persistence when options opened from privileged page and reload required.
This commit is contained in:
parent
2018a5957a
commit
e95013c078
|
@ -180,8 +180,10 @@ var Settings = {
|
||||||
if (typeof unrestrictedTab === "boolean") {
|
if (typeof unrestrictedTab === "boolean") {
|
||||||
ns.unrestrictedTabs[unrestrictedTab ? "add" : "delete"](tabId);
|
ns.unrestrictedTabs[unrestrictedTab ? "add" : "delete"](tabId);
|
||||||
}
|
}
|
||||||
if (reloadAffected) {
|
if (reloadAffected && tabId !== -1) {
|
||||||
|
try {
|
||||||
browser.tabs.reload(tabId);
|
browser.tabs.reload(tabId);
|
||||||
|
} catch (e) {}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (xssUserChoices) await XSS.saveUserChoices(xssUserChoices);
|
if (xssUserChoices) await XSS.saveUserChoices(xssUserChoices);
|
||||||
|
|
Loading…
Reference in New Issue