mirror of
https://github.com/danog/code-server.git
synced 2024-11-30 04:39:46 +01:00
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) {
|
||||
// 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