Skip to content

Commit 297ec62

Browse files
committed
uauth fix
1 parent 6dd280b commit 297ec62

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

uauth/isolatedpicker.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ <h2>Make sure you have popups enabled!</h2>
5151
function finish(message, name, data) {
5252
function waitForReceiverLoad() {
5353
if (receiverLoaded) {
54-
receiverFrame.contentWindow.postMessage({fwOrigin: window.location.origin, webretro: {timestamp: parseInt(queries.timestamp), message: message, name: name, data: data}}, "*");
54+
receiverFrame.contentWindow.postMessage({webretro: {timestamp: parseInt(queries.timestamp), message: message, name: name, data: data}}, "*");
5555
} else {
5656
setTimeout(waitForReceiverLoad, 250);
5757
}

uauth/receiver.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,12 @@
44
<title>Choose a File</title>
55
</head>
66
<body>
7+
<h2>Receiver is loaded.</h2>
78
<h2>I'm supposed to be an invisible iframe... (you shouldn't see this)</h2>
89
<script>
910
let uauthBC = new BroadcastChannel("uauth");
1011
window.addEventListener("message", function(e) {
11-
uauthBC.postMessage(e.data);
12+
uauthBC.postMessage({fwOrigin: e.origin, webretro: e.data.webretro});
1213
window.parent.postMessage("acknowledged", "*");
1314
}, false);
1415
</script>

0 commit comments

Comments
 (0)