Skip to content

Commit

Permalink
fix empty settings
Browse files Browse the repository at this point in the history
  • Loading branch information
spessasus committed Jun 27, 2024
1 parent 9652c55 commit eec36f1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
5 changes: 0 additions & 5 deletions src/website/manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,6 @@ const RENDER_AUDIO_TIME_INTERVAL = 500;
{
this.synth.voiceCap = 100;
}
console.log(isMobile)
}

/**
Expand Down Expand Up @@ -351,9 +350,5 @@ const RENDER_AUDIO_TIME_INTERVAL = 500;

// play the midi
this.seq.play(true);

// this.renderer.onRender = () => {
// console.log("frame")
// }
}
}
2 changes: 1 addition & 1 deletion src/website/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -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, () =>{
Expand Down

0 comments on commit eec36f1

Please sign in to comment.