From e959accb70ea00f99fa611c9f1af40e1be5bde92 Mon Sep 17 00:00:00 2001 From: hackademix Date: Fri, 17 Aug 2018 09:07:11 +0200 Subject: Hack: use top.name to store per-tab content-side configuration (e.g. unrestricted tab status). --- src/bg/Settings.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/bg/Settings.js') 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); -- cgit v1.2.3