Fix issue with params
This commit is contained in:
parent
250ca41e98
commit
a43b619dd0
@ -91,7 +91,7 @@ export default class Overlay extends Component {
|
|||||||
const params = Object.fromEntries(urlSearchParams.entries());
|
const params = Object.fromEntries(urlSearchParams.entries());
|
||||||
|
|
||||||
// Check what website the player wants to use
|
// Check what website the player wants to use
|
||||||
if (params.beatleader === "true") {
|
if (params.beatleader === "true" || params.beatLeader === "true") {
|
||||||
this.setState({ websiteType: "BeatLeader" });
|
this.setState({ websiteType: "BeatLeader" });
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -329,8 +329,8 @@ export default class Overlay extends Component {
|
|||||||
this.resetData(true);
|
this.resetData(true);
|
||||||
this.setState({ songData: data, paused: false });
|
this.setState({ songData: data, paused: false });
|
||||||
if (this.state.showScore) {
|
if (this.state.showScore) {
|
||||||
this.setBeatSaver(data.status.beatmap);
|
this.setBeatSaver(data.status.beatmap);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
finished: () => {
|
finished: () => {
|
||||||
this.resetData(false);
|
this.resetData(false);
|
||||||
|
Reference in New Issue
Block a user