aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main_background.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/main_background.js b/main_background.js
index 16b58d3..debe0c2 100644
--- a/main_background.js
+++ b/main_background.js
@@ -1189,7 +1189,10 @@ function edit_html(html,url,tabid,wl){
break;
}
}
- var license = legacy_license_lib.check(first_script_src);
+
+ var license = false;
+ if (first_script_src != "")
+ license = legacy_license_lib.check(first_script_src);
if(read_metadata(meta_element) || license != false ){
console.log("Valid license for intrinsic events found");
add_popup_entry(tabid,url,{"url":url,"accepted":[url,"Global license for the page: "+license]});