This commit is contained in:
Tommy D. Rossi
2025-11-21 23:24:33 +01:00
parent 7ae0891ec3
commit ce0187f177
2 changed files with 8 additions and 5 deletions
+3
View File
@@ -29,6 +29,9 @@ const useExtensionStore = create<ExtensionState>(() => ({
errorText: undefined, errorText: undefined,
})) }))
// @ts-ignore
globalThis.state = useExtensionStore
async function resetDebugger() { async function resetDebugger() {
let targets = await chrome.debugger.getTargets() let targets = await chrome.debugger.getTargets()
targets = targets.filter((x) => x.tabId && x.attached) targets = targets.filter((x) => x.tabId && x.attached)
+1 -1
View File
@@ -328,7 +328,7 @@ export class RelayConnection {
} }
if (!targetTab) { if (!targetTab) {
throw new Error(`No tab found for sessionId: ${sessionId}`); throw new Error(`No tab found for method ${method} sessionId: ${sessionId}`);
} }
} }