Skip to content

Commit 6b7878b

Browse files
committed
🐛 删除注入代码中的await
1 parent c2ca896 commit 6b7878b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/app/service/content/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export function compileScriptCode(scriptRes: ScriptRunResouce, scriptCode?: stri
2424
return ` with(context){
2525
return (async (factory) => {
2626
try {
27-
return await factory();
27+
factory();
2828
} catch (e) {
2929
if (e.message && e.stack) {
3030
console.error("ERROR: Execution of script '${scriptRes.name}' failed! " + e.message);

0 commit comments

Comments
 (0)