diff options
author | Ruben Rodriguez <ruben@fsf.org> | 2018-05-03 19:48:34 -0400 |
---|---|---|
committer | Ruben Rodriguez <ruben@fsf.org> | 2018-05-03 19:48:34 -0400 |
commit | 7994332e313c801c5167ad4bd42e654f7d3dfc0f (patch) | |
tree | f0fee6ea22ae694ba287bd953cf2b974a7f2fe06 | |
parent | 35fd1d805c16bebbeb20224c9a18da919aef70b0 (diff) |
Always clear unused_data[tabid] before script evaluation
-rw-r--r-- | main_background.js | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/main_background.js b/main_background.js index b0c8d9b..df931de 100644 --- a/main_background.js +++ b/main_background.js @@ -1255,16 +1255,11 @@ function edit_html(html,url,tabid,wl){ * */ function read_document(a){ - var GA = test_GA(a); if(GA != false){ return GA; } - - if(unused_data[a["tabId"]] !== undefined && unused_data[a["tabId"]]["url"] != get_domain(a["url"])){ - delete unused_data[a["tabId"]]; - dbg_print("Page Changed!!!"); - } + delete unused_data[a["tabId"]]; var str = ""; var filter = webex.webRequest.filterResponseData(a.requestId); var decoder = new TextDecoder("utf-8"); |