We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
nonce
1 parent 8058194 commit 78d2262Copy full SHA for 78d2262
src/vs/base/parts/ipc/electron-sandbox/ipc.mp.ts
@@ -13,8 +13,7 @@ interface IMessageChannelResult {
13
source: unknown;
14
}
15
16
-export async function acquirePort(requestChannel: string | undefined, responseChannel: string): Promise<MessagePort> {
17
- const nonce = generateUuid();
+export async function acquirePort(requestChannel: string | undefined, responseChannel: string, nonce = generateUuid()): Promise<MessagePort> {
18
19
// Get ready to acquire the message port from the
20
// provided `responseChannel` via preload helper.
0 commit comments