Skip to content
This repository was archived by the owner on Jan 31, 2025. It is now read-only.

Commit 82f10f6

Browse files
author
Daniel Brain
committed
Listen to correct window for open tunnel message
1 parent 16d8edd commit 82f10f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bridge/parent.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ global.popupWindowsByWin = global.popupWindowsByWin || new WeakMap();
1919
global.popupWindowsByName = global.popupWindowsByName || {};
2020

2121
function listenForRegister(source, domain) {
22-
on(CONSTANTS.POST_MESSAGE_NAMES.OPEN_TUNNEL, { source, domain }, ({ origin, data }) => {
22+
on(CONSTANTS.POST_MESSAGE_NAMES.OPEN_TUNNEL, { window: source, domain }, ({ origin, data }) => {
2323

2424
if (origin !== domain) {
2525
throw new Error(`Domain ${domain} does not match origin ${origin}`);

0 commit comments

Comments
 (0)