Skip to content

Commit

Permalink
Wait for custom UI (#1523)
Browse files Browse the repository at this point in the history
  • Loading branch information
dnicolson committed Aug 19, 2023
1 parent e64aaad commit ab2313d
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,6 @@ export class CustomPluginsComponent implements OnInit, OnDestroy {
this.iframe = this.customPluginUiElementTarget.nativeElement as HTMLIFrameElement;
this.iframe.src = environment.api.base + this.basePath +
'/index.html?origin=' + encodeURIComponent(location.origin) + '&v=' + encodeURIComponent(this.plugin.installedVersion);
this.iframe.onload = () => {
this.uiLoaded = true;
};
}

handleMessage = (e: MessageEvent) => {
Expand All @@ -134,6 +131,7 @@ export class CustomPluginsComponent implements OnInit, OnDestroy {
case 'loaded':
this.injectDefaultStyles(e);
this.confirmReady(e);
this.uiLoaded = true;
break;
case 'request': {
this.handleRequest(e);
Expand Down

0 comments on commit ab2313d

Please sign in to comment.