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") {
|
||||
ns.unrestrictedTabs[unrestrictedTab ? "add" : "delete"](tabId);
|
||||
}
|
||||
if (reloadAffected) {
|
||||
browser.tabs.reload(tabId);
|
||||
if (reloadAffected && tabId !== -1) {
|
||||
try {
|
||||
browser.tabs.reload(tabId);
|
||||
} catch (e) {}
|
||||
}
|
||||
|
||||
if (xssUserChoices) await XSS.saveUserChoices(xssUserChoices);
|
||||
|
|
Loading…
Reference in New Issue