Skip to content

Commit 78d2262

Browse files
committed
make nonce transferable
1 parent 8058194 commit 78d2262

File tree

1 file changed

+1
-2
lines changed
  • src/vs/base/parts/ipc/electron-sandbox

1 file changed

+1
-2
lines changed

src/vs/base/parts/ipc/electron-sandbox/ipc.mp.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@ interface IMessageChannelResult {
1313
source: unknown;
1414
}
1515

16-
export async function acquirePort(requestChannel: string | undefined, responseChannel: string): Promise<MessagePort> {
17-
const nonce = generateUuid();
16+
export async function acquirePort(requestChannel: string | undefined, responseChannel: string, nonce = generateUuid()): Promise<MessagePort> {
1817

1918
// Get ready to acquire the message port from the
2019
// provided `responseChannel` via preload helper.

0 commit comments

Comments
 (0)