debug
This commit is contained in:
parent
e9d7b365cc
commit
66fb5411b4
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user