aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhackademix <giorgio@maone.net>2018-09-06 01:16:15 +0200
committerhackademix <giorgio@maone.net>2018-09-06 01:16:15 +0200
commit0e004bf1a3c154b98a96494dc97ecba58b8162ed (patch)
tree8dfd6c9307d8208b0d536f44f2a944a5cb8a443c
parent1eac93ab65df6963b464a780b92ff06651ba96d6 (diff)
Fix navigating the same url with hash erases script activity report information.
-rw-r--r--main_background.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/main_background.js b/main_background.js
index 08007f8..d12ff54 100644
--- a/main_background.js
+++ b/main_background.js
@@ -436,7 +436,7 @@ function delete_removed_tab_info(tab_id, remove_info){
*/
async function onTabUpdated(tabId, changedInfo, tab) {
- let {url} = tab;
+ let url = tab.url.replace(/#.*/, '');
let report = activityReports[tabId];
if (!(report && report.url === url)) {
let cache = await browser.sessions.getTabValue(tabId, url);