fix(ext): sw calling robust

This commit is contained in:
Simon
2026-01-28 14:13:28 +08:00
parent 0cad8a1159
commit c80de93d3b
3 changed files with 5 additions and 35 deletions

View File

@@ -8,11 +8,6 @@ export function handleTabControlMessage(
sender: chrome.runtime.MessageSender,
sendResponse: (response: unknown) => void
): boolean {
if (message.type !== 'TAB_CONTROL') {
sendResponse({ error: 'Invalid message type' })
return false
}
const { action, payload } = message
switch (action as TabAction) {