diff options
author | NateN1222 <nathannichols454@gmail.com> | 2018-03-03 11:29:08 -0600 |
---|---|---|
committer | NateN1222 <nathannichols454@gmail.com> | 2018-03-03 11:29:08 -0600 |
commit | a656240e082653865dc40e072b01f15628d0a5e6 (patch) | |
tree | 8d6c673f3903b7d28acb41ce3617482d14d76ed9 /html | |
parent | 4fb548665718374bc9b4db133fcd1c33204f2466 (diff) |
removed unused data, various small tweaks
Diffstat (limited to 'html')
-rw-r--r-- | html/display_panel/content/main_panel.js | 10 |
1 files changed, 4 insertions, 6 deletions
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","<h3>Refresh the page to revaluate this script.</h3>"); - myPort.postMessage({"forget": temp}); - } + //this.parentElement.parentElement.getElementsByTagName("b")[0].insertAdjacentHTML("beforebegin","<h3>Refresh the page to revaluate this script.</h3>"); + 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); |