diff --git a/src/background/navigation-manager.js b/src/background/navigation-manager.js index e3be1526e6..df842e2395 100644 --- a/src/background/navigation-manager.js +++ b/src/background/navigation-manager.js @@ -59,7 +59,7 @@ async function onNavigation(data) { function onFakeNavigation(data) { onNavigation.call(this, data); const {tabId} = data; - const td = tabCache.has(tabId); if (!td) return; + const td = tabCache.get(tabId); if (!td) return; const {url, frameId: f, documentId: d} = data; const iid = !__.MV3 && !d && td.iid?.[f]; const to = __.MV3 || d ? {documentId: d} : {frameId: f};