From a43b619dd0a293446e9178120320b403c1fb7b6f Mon Sep 17 00:00:00 2001 From: Liam <67254223+RealFascinated@users.noreply.github.com> Date: Wed, 19 Oct 2022 10:54:17 +0100 Subject: [PATCH] Fix issue with params --- pages/overlay.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pages/overlay.js b/pages/overlay.js index 69265f0..61907b7 100644 --- a/pages/overlay.js +++ b/pages/overlay.js @@ -91,7 +91,7 @@ export default class Overlay extends Component { const params = Object.fromEntries(urlSearchParams.entries()); // Check what website the player wants to use - if (params.beatleader === "true") { + if (params.beatleader === "true" || params.beatLeader === "true") { this.setState({ websiteType: "BeatLeader" }); } @@ -329,8 +329,8 @@ export default class Overlay extends Component { this.resetData(true); this.setState({ songData: data, paused: false }); if (this.state.showScore) { - this.setBeatSaver(data.status.beatmap); - } + this.setBeatSaver(data.status.beatmap); + } }, finished: () => { this.resetData(false);