Merge pull request #2641 from cdr/send-ready-to-all-origins
Send 'loaded' event to all parent origins
This commit is contained in:
commit
1fcb0c3ddd
|
@ -102,7 +102,7 @@ export const initialize = async (services: ServiceCollection): Promise<void> =>
|
||||||
|
|
||||||
if (parent) {
|
if (parent) {
|
||||||
// Tell the parent loading has completed.
|
// Tell the parent loading has completed.
|
||||||
parent.postMessage({ event: 'loaded' }, window.location.origin);
|
parent.postMessage({ event: 'loaded' }, '*');
|
||||||
|
|
||||||
// Proxy or stop proxing events as requested by the parent.
|
// Proxy or stop proxing events as requested by the parent.
|
||||||
const listeners = new Map<string, (event: Event) => void>();
|
const listeners = new Map<string, (event: Event) => void>();
|
||||||
|
|
Loading…
Reference in New Issue