Skip to content

Commit

Permalink
fix: Fixed sandpackNode initializing failure (#1105)
Browse files Browse the repository at this point in the history
  • Loading branch information
lilong7676 committed Mar 26, 2024
1 parent 624a691 commit 26685d9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sandpack-client/src/clients/node/index.ts
Expand Up @@ -202,6 +202,7 @@ export class SandpackNode extends SandpackClient {
nullthrows(element, `The element '${selector}' was not found`);

this.iframe = document.createElement("iframe");
element?.appendChild(this.iframe);
} else {
this.iframe = selector;
}
Expand Down

0 comments on commit 26685d9

Please sign in to comment.