Send 'loaded' event to all parent origins

This commit is contained in:
Dean Sheather 2021-01-26 18:54:55 +00:00
parent c4610f7829
commit 42dcfc94ab
No known key found for this signature in database
GPG Key ID: B574DF7CAFDCFAA3
1 changed files with 1 additions and 1 deletions

View File

@ -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>();