From 0e004bf1a3c154b98a96494dc97ecba58b8162ed Mon Sep 17 00:00:00 2001 From: hackademix Date: Thu, 6 Sep 2018 01:16:15 +0200 Subject: Fix navigating the same url with hash erases script activity report information. --- main_background.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'main_background.js') 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); -- cgit v1.2.3