Send 'loaded' event to all parent origins
This commit is contained in:
parent
c4610f7829
commit
42dcfc94ab
@ -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>();
|
||||||
|
Reference in New Issue
Block a user