aboutsummaryrefslogtreecommitdiff
path: root/html
diff options
context:
space:
mode:
Diffstat (limited to 'html')
-rw-r--r--html/display_panel/content/main_panel.js3
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});
});
}