From affcefe057e027f73549ddca93a6e574b67f8a25 Mon Sep 17 00:00:00 2001 From: Da Kong Date: Thu, 20 Jun 2024 13:42:03 +0800 Subject: [PATCH] fix: path missing issue --- src/popup.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/popup.js b/src/popup.js index 72a84b3..7a6058c 100644 --- a/src/popup.js +++ b/src/popup.js @@ -88,7 +88,7 @@ async function getCustomManifest() { getCustomManifest(); -async function showUnresolvedTabPage({ path }) { +async function showUnresolvedTabPage(path) { const unresolvedLogs = await getAllUnresolvedLogs(); const unresolvedLogsPage = logPage.getUnresolvedLogsPageRender({ unresolvedLogs }); document.querySelector("#rc-widget-adapter-frame").contentWindow.postMessage({ @@ -347,7 +347,7 @@ window.addEventListener('message', async (e) => { if (data.path !== '/') { trackPage(data.path); if (data.path === '/customizedTabs/unresolve') { - await showUnresolvedTabPage({ currentPath: data.path }); + await showUnresolvedTabPage(data.path); } } if (!!data.path) {