debug
This commit is contained in:
parent
f53a0e2847
commit
e9d7b365cc
|
|
@ -13,7 +13,7 @@ export const useWebsocketStore = defineStore("websocket", {
|
||||||
const player = usePlayerStore()
|
const player = usePlayerStore()
|
||||||
const game = useGameStore()
|
const game = useGameStore()
|
||||||
console.log(game.owner, game.opponent.id, player.id)
|
console.log(game.owner, game.opponent.id, player.id)
|
||||||
if (game.owner == player.id || 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
|
window.location.href = window.location.origin + '/lobby/' + game.id
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user