summaryrefslogtreecommitdiff
path: root/src/bg/Settings.js
diff options
context:
space:
mode:
authorhackademix2018-08-17 09:07:11 +0200
committerhackademix2018-08-17 09:07:11 +0200
commite959accb70ea00f99fa611c9f1af40e1be5bde92 (patch)
tree7d09dac1c3016c0cbec6a91b66bb8cf5f601ad70 /src/bg/Settings.js
parent50d71ca3819723439985cad4f40a095fb5f91f11 (diff)
downloadnoscript-e959accb70ea00f99fa611c9f1af40e1be5bde92.tar.gz
noscript-e959accb70ea00f99fa611c9f1af40e1be5bde92.tar.xz
noscript-e959accb70ea00f99fa611c9f1af40e1be5bde92.zip
Hack: use top.name to store per-tab content-side configuration (e.g. unrestricted tab status).
Diffstat (limited to 'src/bg/Settings.js')
-rw-r--r--src/bg/Settings.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/bg/Settings.js b/src/bg/Settings.js
index 4fb656f..09f0edd 100644
--- a/src/bg/Settings.js
+++ b/src/bg/Settings.js
@@ -89,7 +89,8 @@ var Settings = {
}
if (typeof unrestrictedTab === "boolean") {
- ns.unrestrictedTabs[settings.unrestrictedTab ? "add" : "delete"](tabId);
+ ns.unrestrictedTabs[unrestrictedTab ? "add" : "delete"](tabId);
+ ChildPolicies.storeTabInfo(tabId, {unrestricted: unrestrictedTab});
}
if (reloadAffected) {
browser.tabs.reload(tabId);