From 636017dcc3e1788837d25a3d902b7040be779135 Mon Sep 17 00:00:00 2001 From: Ruben Rodriguez Date: Tue, 22 May 2018 18:09:27 -0400 Subject: Corrected case for pages with no inline scripts --- main_background.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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]}); -- cgit v1.2.3