mirror of
https://git.tuxpa.in/a/code-server.git
synced 2024-12-27 04:35:25 +00:00
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) {
|
||||
// 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.
|
||||
const listeners = new Map<string, (event: Event) => void>();
|
||||
|
Loading…
Reference in New Issue
Block a user