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.
1 parent 981925c commit c562604Copy full SHA for c562604
src/consumer/frame.js
@@ -198,9 +198,10 @@ class Frame extends EventEmitter {
198
// 2. Identify the app the message came from.
199
if (this.iframe.contentWindow !== event.source) return;
200
201
- // For Chrome, the origin property is in the event.originalEvent object
+ // For Chrome, the origin property is in the event.originalEvent object.
202
+ // Update origin so it can be used to post back to this frame.
203
this.origin = event.origin || event.originalEvent.origin;
-
204
+
205
logger.log('<< consumer', event.origin, event.data);
206
207
// 3. Send a response, if any, back to the app.
0 commit comments