diff options
author | NateN1222 <nathannichols454@gmail.com> | 2017-08-01 15:16:41 -0500 |
---|---|---|
committer | NateN1222 <nathannichols454@gmail.com> | 2017-08-01 15:16:41 -0500 |
commit | c287355c9e09b7bc2c3471628db86feeb127e820 (patch) | |
tree | 1a61a24766d52d4489f64326b4f56e590e2343c0 /html | |
parent | 33db5e1fd5f3d94d070ed37f46f370adcdaf1b3b (diff) |
Added a way to send a message that updates the whitelisted scripts of a given domain from the browser action content script
Diffstat (limited to 'html')
-rw-r--r-- | html/display_panel/content/main_panel.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/html/display_panel/content/main_panel.js b/html/display_panel/content/main_panel.js index 44be902..a724c75 100644 --- a/html/display_panel/content/main_panel.js +++ b/html/display_panel/content/main_panel.js @@ -35,6 +35,7 @@ var current_blocked_data; * */ function generate_HTML(blocked_data){ + current_blocked_data = blocked_data; var a = blocked_data; var button_complain = '<a id="complain-contact" class="button white" href="#"><span>Complain to site owner</span></a>'; @@ -80,7 +81,7 @@ function generate_HTML(blocked_data){ document.getElementById("wl_"+i).addEventListener("click",function(a){ console.log(a.path[0].id + " clicked"); var temp = current_blocked_data["blocked"][parseInt(a.path[0].id.substr(3))]; - console.log(temp); + console.log(temp); myPort.postMessage({"whitelist_script": temp}); }); } |