Skip to content

Commit

Permalink
Merge pull request #154 from yakisova41/hotfix-isolate-connector
Browse files Browse the repository at this point in the history
Hotix isolate connector
  • Loading branch information
yakisova41 authored Aug 10, 2024
2 parents 41a5f62 + fc6cdb0 commit 817c693
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/crx-monkey/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/crx-monkey/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "crx-monkey",
"type": "module",
"version": "0.11.3",
"version": "0.11.4",
"description": "",
"bin": {
"crx-monkey": "bin/crx-monkey"
Expand Down
5 changes: 2 additions & 3 deletions packages/crx-monkey/src/node/static/files/isolateConnector.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ window.addEventListener('message', (e) => {
);
break;
case 'on-message':
() => {
(() => {
const handleMessage = (request, sender) => {
target.dispatchEvent(
new CustomEvent('crx-isolate-connector-result', {
Expand All @@ -39,8 +39,7 @@ window.addEventListener('message', (e) => {
};
messageListeners[data.actionId] = handleMessage;
chrome.runtime.onMessage.addListener(handleMessage);
};

})();
break;

case 'remove-on-message':
Expand Down

0 comments on commit 817c693

Please sign in to comment.