Skip to content

Commit

Permalink
removing extra iframe listener - replace with direct resolve
Browse files Browse the repository at this point in the history
  • Loading branch information
Mohammed-Mamoun98 committed Dec 2, 2024
1 parent 37d1b38 commit 8639499
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ export class IframeEnclave implements EnclaveProvider {
const hasIframe = document.getElementById(this.iframe.id);
if (hasIframe) {
console.warn("An Iframe already exists in the container");
return new Promise((resolve) => this.iframe.addEventListener("load", resolve));
return Promise.resolve();
}

// https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Permissions-Policy#directives
Expand Down

0 comments on commit 8639499

Please sign in to comment.