Skip to content

Commit f6868e0

Browse files
fix scripts loading
1 parent 7ac256e commit f6868e0

1 file changed

Lines changed: 12 additions & 3 deletions

File tree

editor/pages/_app.tsx

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,14 @@ function HeadInjection() {
3737
name="viewport"
3838
content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"
3939
/>
40+
</Head>
41+
);
42+
}
43+
44+
function DefaultScripts() {
45+
return (
46+
<>
47+
{/* disable zoom */}
4048
<Script>
4149
{
4250
// wheel + ctrl - disable zoom on chrome / safari
@@ -71,7 +79,7 @@ function HeadInjection() {
7179
`}
7280
</Script>
7381
{/* end region */}
74-
</Head>
82+
</>
7583
);
7684
}
7785

@@ -109,14 +117,15 @@ function EditorApp({ Component, pageProps }) {
109117
}, [analyzed]);
110118

111119
return (
112-
<React.Fragment>
120+
<>
113121
<HeadInjection />
122+
<DefaultScripts />
114123
<MuiThemeProvider>
115124
<EditorThemeProvider dark>
116125
<Component {...pageProps} />
117126
</EditorThemeProvider>
118127
</MuiThemeProvider>
119-
</React.Fragment>
128+
</>
120129
);
121130
}
122131

0 commit comments

Comments
 (0)