Skip to content

Commit a76906b

Browse files
committed
🐛 Fixed infinite iframe bug
1 parent c36ee06 commit a76906b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/sandbox/view.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@ export default class View extends SuperComponent<ViewData> {
4747
}
4848

4949
private async load(component: string) {
50+
if (component === "mpa/" || component === "spa/" || component === "/") {
51+
return;
52+
}
5053
this.set({
5154
component: component,
5255
view: "demo",

0 commit comments

Comments
 (0)