diff options
author | Ruben Rodriguez <ruben@gnu.org> | 2018-05-22 18:09:27 -0400 |
---|---|---|
committer | Ruben Rodriguez <ruben@gnu.org> | 2018-05-22 18:09:27 -0400 |
commit | 636017dcc3e1788837d25a3d902b7040be779135 (patch) | |
tree | 6dcfef03f53c9583ef854c2e18c80073854a2976 /main_background.js | |
parent | 0c09f2fd75973982808bc0732da8f26da6b3a682 (diff) |
Corrected case for pages with no inline scripts
Diffstat (limited to 'main_background.js')
-rw-r--r-- | main_background.js | 5 |
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]}); |