diff options
-rw-r--r-- | main_background.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/main_background.js b/main_background.js index 26167d4..dfdfd18 100644 --- a/main_background.js +++ b/main_background.js @@ -933,6 +933,7 @@ function get_script(response,url,tabid,wl,index=-1){ if(unused_data[tabid] === undefined){ unused_data[tabid] = {"url":url,"accepted":[],"blocked":[]}; } + var edited; var tok_index = url.split("/").length; var scriptname = url.split("/")[tok_index-1]; if(wl == true){ @@ -948,10 +949,11 @@ function get_script(response,url,tabid,wl,index=-1){ } else{ resolve("\n/*\n LibreJS: Script whitelisted by user (From a URL found in comma seperated whitelist)\n*/\n"+response); } + edited = [true,response,"Page is whitelisted in preferences"]; + }else{ + edited = license_read(response,scriptname); } - var src_hash = hash(response); - var edited = license_read(response,scriptname); var verdict = edited[0]; var popup_res; var domain = get_domain(url); |