From eec36f18968e1c67c1791025c49fa2187a534784 Mon Sep 17 00:00:00 2001 From: spessasus Date: Thu, 27 Jun 2024 16:25:44 +0200 Subject: [PATCH] fix empty settings --- src/website/manager.js | 5 ----- src/website/server.js | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/src/website/manager.js b/src/website/manager.js index 1e52d754..2f41c8df 100644 --- a/src/website/manager.js +++ b/src/website/manager.js @@ -313,7 +313,6 @@ const RENDER_AUDIO_TIME_INTERVAL = 500; { this.synth.voiceCap = 100; } - console.log(isMobile) } /** @@ -351,9 +350,5 @@ const RENDER_AUDIO_TIME_INTERVAL = 500; // play the midi this.seq.play(true); - - // this.renderer.onRender = () => { - // console.log("frame") - // } } } \ No newline at end of file diff --git a/src/website/server.js b/src/website/server.js index 9cc1ef16..5e3d7279 100644 --- a/src/website/server.js +++ b/src/website/server.js @@ -78,7 +78,7 @@ app.get("/getsettings", (req, res) => { * }} */ const config = JSON.parse(fs.readFileSync(configPath, "utf-8")); - res.send(config.settings); + res.send(config.settings || {}); }) app.listen(PORT, HOST, undefined, () =>{