Skip to content

Commit

Permalink
fix post message loop
Browse files Browse the repository at this point in the history
  • Loading branch information
riknoll committed Apr 26, 2024
1 parent 3ae6fe3 commit 7234c54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pxtservices/iframeEmbeddedClient.ts
Expand Up @@ -63,7 +63,7 @@ export class IFrameEmbeddedClient {
else if ((window as any).acquireVsCodeApi) {
(window as any).acquireVsCodeApi().postMessage(message)
}
else {
else if (window.parent && window.parent !== window) {
window.parent.postMessage(message, "*");
}
}
Expand Down

0 comments on commit 7234c54

Please sign in to comment.