From 92cde0094de1313163fe3abb8e93824ff4dc70a8 Mon Sep 17 00:00:00 2001 From: Younes Strittmatter Date: Tue, 15 Oct 2024 15:22:33 -0400 Subject: [PATCH] Update const.py --- sweetbean/const.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sweetbean/const.py b/sweetbean/const.py index 5c62633f..90c106a4 100644 --- a/sweetbean/const.py +++ b/sweetbean/const.py @@ -81,7 +81,8 @@ def FUNCTION_PREAMBLE(is_async): async_string = "" if is_async: async_string = "async " - return f"{async_string}function runExperiment() " + "{\n" + return f"{async_string}function runExperiment() " + ("{\n" + "document.body.style.backgroundColor = 'black';\n") def FUNCTION_APPENDIX(is_async):