-
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
58 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[submodule "packages/webextension/comlink-extension"] | ||
path = packages/webextension/comlink-extension | ||
url = https://github.com/samdenty/comlink-extension.git |
4 changes: 2 additions & 2 deletions
4
packages/webextension/app/scripts/InstalledApp/StateContext.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/webextension/app/scripts/background/onTextlintWorker.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule comlink-extension
added at
3facc5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
diff --git a/comlink-extension/src/adapter.ts b/comlink-extension/src/adapter.ts | ||
index 11038b3..2b50a15 100644 | ||
--- a/comlink-extension/src/adapter.ts | ||
+++ b/comlink-extension/src/adapter.ts | ||
@@ -27,7 +27,7 @@ export function createEndpoint( | ||
|
||
function serialize(data: any): void { | ||
if (Array.isArray(data)) { | ||
- data.forEach((value, i) => { | ||
+ data.forEach((value) => { | ||
serialize(value); | ||
}); | ||
} else if (data && typeof data === "object") { | ||
@@ -97,7 +97,7 @@ export function createEndpoint( | ||
} | ||
|
||
return { | ||
- postMessage: (message, transfer: MessagePort[]) => { | ||
+ postMessage: (message) => { | ||
serialize(message); | ||
port.postMessage(message); | ||
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters