Skip to content

Commit f0514c8

Browse files
Added top level await for debug code execution
1 parent 62bbc94 commit f0514c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

client/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ const createWindow = () => {
167167
with ({
168168
log: (debugLog) => window.webContents.send("debugLog", debugLog)
169169
}) {
170-
eval(debugCode);
170+
eval("(async () => {" + debugCode + "})();");
171171
};
172172
});
173173

0 commit comments

Comments
 (0)