Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit c936c25

Browse files
committed
frontend: bug fix
1 parent 7071045 commit c936c25

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎public/js/game.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -788,7 +788,7 @@ if (["Android", "iOS"].some(v => window.navigator.userAgent.includes(v))) {
788788
if (eventData.user.role === -1 && !/[?&]guest=true/.test(window.location.search))
789789
return document.location.href = "/login/";
790790

791-
if (details.mode === Room.Type.ELIMINATION)
791+
if (modeToString(details.mode).toLowerCase() === Room.Type.ELIMINATION)
792792
room = new EliminationRoom();
793793
else room = new Room();
794794

@@ -832,7 +832,7 @@ if (["Android", "iOS"].some(v => window.navigator.userAgent.includes(v))) {
832832
room.blobs.push(newBlob);
833833
}
834834

835-
if (details.mode===Room.Type.ELIMINATION&&room instanceof EliminationRoom) {
835+
if (room instanceof EliminationRoom) {
836836
room.state = eventData.state;
837837
room.createdAt = eventData.roomCreatedAt;
838838
EliminationRoom.waitingTime = eventData.waitingTime;

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /