This commit is contained in:
IndieKKY
2024-10-05 21:17:26 +08:00
parent 4f03e75b6d
commit c71e8e2eab
4 changed files with 11 additions and 4 deletions

View File

@@ -113,7 +113,6 @@ class ExtensionMessage {
}
broadcastMessageExact = async (tabIds: number[], target: string, method: string, params?: any) => {
//遍历portIdToPort
const targetType = target === MESSAGE_TARGET_INJECT ? 'inject' : 'app'
let resp: MessageResult | undefined
for (const portContext of this.portIdToPort.values()) {