This commit is contained in:
Aleksandr Zaitsev 2024-07-21 21:24:55 +03:00
parent e9d7b365cc
commit 66fb5411b4

View File

@ -12,7 +12,7 @@ export const useWebsocketStore = defineStore("websocket", {
init(gameId) {
const player = usePlayerStore()
const game = useGameStore()
console.log(game.owner, game.opponent.id, player.id)
console.log(game, game.opponent.id, player.id)
if (window.location.pathname != '/lobby/' + game.id && (game.owner == player.id || game.opponent.id == player.id)) {
window.location.href = window.location.origin + '/lobby/' + game.id
return