Skip to content

Commit

Permalink
fix(sandbox): sandbox exec script error (#655)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhoushaw authored Feb 28, 2024
1 parent 422f493 commit 20a9051
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/browser-vm/src/dynamicNode/processor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,10 @@ export class DynamicNodeProcessor {
}

// Add dynamic script node by loader
if (this.is('script')) {
if (
this.is('script') &&
this.el?.getAttribute('type') !== 'application/json'
) {
parentNode = this.findParentNodeInApp(context, 'body');
convertedNode = this.addDynamicScriptNode();
}
Expand Down

0 comments on commit 20a9051

Please sign in to comment.