From fc6cdb07bcc0b15ab5038a570396ea44647e1aaf Mon Sep 17 00:00:00 2001 From: yakisova41 Date: Sun, 11 Aug 2024 00:55:48 +0900 Subject: [PATCH] Hotix isolate connector --- packages/crx-monkey/package-lock.json | 2 +- packages/crx-monkey/package.json | 2 +- .../crx-monkey/src/node/static/files/isolateConnector.js | 5 ++--- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/packages/crx-monkey/package-lock.json b/packages/crx-monkey/package-lock.json index a5199e0..1690806 100644 --- a/packages/crx-monkey/package-lock.json +++ b/packages/crx-monkey/package-lock.json @@ -1,6 +1,6 @@ { "name": "crx-monkey", - "version": "0.11.3", + "version": "0.11.4", "lockfileVersion": 3, "requires": true, "packages": { diff --git a/packages/crx-monkey/package.json b/packages/crx-monkey/package.json index 04a8d10..58d6368 100644 --- a/packages/crx-monkey/package.json +++ b/packages/crx-monkey/package.json @@ -1,7 +1,7 @@ { "name": "crx-monkey", "type": "module", - "version": "0.11.3", + "version": "0.11.4", "description": "", "bin": { "crx-monkey": "bin/crx-monkey" diff --git a/packages/crx-monkey/src/node/static/files/isolateConnector.js b/packages/crx-monkey/src/node/static/files/isolateConnector.js index 4faa456..5417856 100644 --- a/packages/crx-monkey/src/node/static/files/isolateConnector.js +++ b/packages/crx-monkey/src/node/static/files/isolateConnector.js @@ -25,7 +25,7 @@ window.addEventListener('message', (e) => { ); break; case 'on-message': - () => { + (() => { const handleMessage = (request, sender) => { target.dispatchEvent( new CustomEvent('crx-isolate-connector-result', { @@ -39,8 +39,7 @@ window.addEventListener('message', (e) => { }; messageListeners[data.actionId] = handleMessage; chrome.runtime.onMessage.addListener(handleMessage); - }; - + })(); break; case 'remove-on-message':