fix(ext/router): allow popup.html with query params
The router was doing exact URL match for popup.html, but when opened in a tab with params (?view=add&type=card), it failed. Changed to startsWith match like setup.html already uses. Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -35,7 +35,7 @@ export async function route(
|
||||
const setupUrl = chrome.runtime.getURL('setup.html');
|
||||
const senderUrl = sender.url ?? '';
|
||||
|
||||
const isPopup = senderUrl === popupUrl;
|
||||
const isPopup = senderUrl.startsWith(popupUrl);
|
||||
const isSetup = senderUrl.startsWith(setupUrl);
|
||||
const isContent = sender.tab !== undefined
|
||||
&& sender.frameId === 0
|
||||
|
||||
Reference in New Issue
Block a user