Skip to content

Commit 8e44f4c

Browse files
committed
fix issue on script module
1 parent bba4371 commit 8e44f4c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/modules/script/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ const appendScriptTag = (url, code, id) => {
1111

1212
const script = function (element, mod, config) {
1313
if (!mod.forceRun && config._mode === 'preview') return
14+
if (!mod.code) return
1415
if (config.contextType !== 'scene') return
1516

1617
const id = '_JSMOD_' + parseInt(Math.random() * 10000)

0 commit comments

Comments
 (0)