From 0e004bf1a3c154b98a96494dc97ecba58b8162ed Mon Sep 17 00:00:00 2001 From: hackademix Date: Sep 05 2018 23:16:15 +0000 Subject: Fix navigating the same url with hash erases script activity report information. --- 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);