Modification win.loc to navigateTO()
This commit is contained in:
parent
b49641d71c
commit
ca1865b850
3 changed files with 13 additions and 6 deletions
|
|
@ -9,6 +9,7 @@ import type {
|
|||
import type { User } from "@app/auth";
|
||||
import {
|
||||
addRoute,
|
||||
navigateTo,
|
||||
setTitle,
|
||||
type RouteHandlerParams,
|
||||
type RouteHandlerReturn,
|
||||
|
|
@ -312,14 +313,14 @@ sendButton?.addEventListener("click", () => {
|
|||
|
||||
case "@pong":
|
||||
if (msgCommand[1] === "") {
|
||||
window.location.href = "/app/pong/games";
|
||||
navigateTo("/app/pong/games");
|
||||
quitChat();
|
||||
}
|
||||
break;
|
||||
|
||||
case "@ttt":
|
||||
if (msgCommand[1] === "") {
|
||||
window.location.href = "/app/ttt/games";
|
||||
navigateTo("/app/ttt/games");
|
||||
quitChat();
|
||||
}
|
||||
break;
|
||||
|
|
@ -432,12 +433,12 @@ bquit?.addEventListener("click", () => {
|
|||
});
|
||||
|
||||
myGames?.addEventListener("click", () => {
|
||||
window.location.href = "/app/pong/games";
|
||||
navigateTo("/app/pong/games");
|
||||
quitChat();
|
||||
});
|
||||
|
||||
myTTTGames?.addEventListener("click", () => {
|
||||
window.location.href = "/app/ttt/games";
|
||||
navigateTo("/app/ttt/games");
|
||||
quitChat();
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue