diff --git a/js/functions.js b/js/functions.js index f06b212..d1168d7 100644 --- a/js/functions.js +++ b/js/functions.js @@ -1663,7 +1663,7 @@ function code_eval(snippet) { var f="eval"; if(snippet.search("output=")!=-1 || snippet.search("json_output=")!=-1) f="eval_s"; - if(snippet.search("await")!=-1) snippet="(async () => {"+snippet+"})()"; + if(snippet.search("await")!=-1) snippet="(async () => {"+snippet+"\n})()"; if(code_active) { call_code_function(f,snippet); @@ -7006,4 +7006,4 @@ function electron_add_webview(url) { if(!url) url="http://thegame.com/character/GG/in/EU/I/"; $("body").append(""); -} \ No newline at end of file +}