This commit is contained in:
IndieKKY
2024-10-06 18:55:41 +08:00
parent e5a645611b
commit 2bb5f41189
3 changed files with 93 additions and 111 deletions

View File

@@ -78,7 +78,7 @@ const methods: {
const extensionMessaging = new ExtensionMessaging()
extensionMessaging.init(methods)
chrome.runtime.onMessage.addListener((event: MessageData, sender: chrome.runtime.MessageSender, sendResponse: (result: any) => void) => {
chrome.runtime.onMessage.addListener((event: any, sender: chrome.runtime.MessageSender, sendResponse: (result: any) => void) => {
// debug((sender.tab != null) ? `tab ${sender.tab.url ?? ''} => ` : 'extension => ', event)
// legacy