From a656240e082653865dc40e072b01f15628d0a5e6 Mon Sep 17 00:00:00 2001 From: NateN1222 Date: Sat, 3 Mar 2018 11:29:08 -0600 Subject: removed unused data, various small tweaks --- html/display_panel/content/main_panel.js | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'html/display_panel/content') diff --git a/html/display_panel/content/main_panel.js b/html/display_panel/content/main_panel.js index d58db8a..7b9617c 100644 --- a/html/display_panel/content/main_panel.js +++ b/html/display_panel/content/main_panel.js @@ -98,10 +98,8 @@ function write_elements(data,name,color){ var temp = current_blocked_data[name][parseInt(info.target.id.match(/\d/g)[1])]; console.log("Forget preferences for script " + temp[0]); var script_name = this.parentElement.parentElement.parentElement.parentElement.id; - if(this.parentElement.parentElement.innerHTML.indexOf("Refresh the page") == -1){ - //this.parentElement.parentElement.getElementsByTagName("b")[0].insertAdjacentHTML("beforebegin","

Refresh the page to revaluate this script.

"); - myPort.postMessage({"forget": temp}); - } + //this.parentElement.parentElement.getElementsByTagName("b")[0].insertAdjacentHTML("beforebegin","

Refresh the page to revaluate this script.

"); + myPort.postMessage({"forget": temp}); }); } } @@ -213,5 +211,5 @@ function delete_local_storage(){ myPort.postMessage({"deletelocalstorage":true}); } -//new_debug_button("Print local storage",print_local_storage); -//new_debug_button("Clear local storage",delete_local_storage); +new_debug_button("Print local storage",print_local_storage); +new_debug_button("Clear local storage",delete_local_storage); -- cgit v1.2.3