forked from noxious/client
Remove cookie fix for prod. env.
This commit is contained in:
parent
7d0a6084c5
commit
37c39bd336
@ -64,7 +64,10 @@ export const useGameStore = defineStore('game', {
|
|||||||
disconnectSocket() {
|
disconnectSocket() {
|
||||||
if (this.connection) this.connection.disconnect()
|
if (this.connection) this.connection.disconnect()
|
||||||
|
|
||||||
useCookies().remove('token')
|
useCookies().remove('token', {
|
||||||
|
// for whole domain
|
||||||
|
domain: window.location.hostname.split('.').slice(-2).join('.')
|
||||||
|
})
|
||||||
|
|
||||||
this.connection = null
|
this.connection = null
|
||||||
this.token = null
|
this.token = null
|
||||||
|
Loading…
x
Reference in New Issue
Block a user