Removed getDomain func.
This commit is contained in:
@ -1,6 +1,5 @@
|
||||
import config from '@/application/config'
|
||||
import type { Character, Notification, TextureData, User, WorldSettings } from '@/application/types'
|
||||
import { getDomain } from '@/application/utilities'
|
||||
import type { Character, Notification, User, WorldSettings } from '@/application/types'
|
||||
import { useCookies } from '@vueuse/integrations/useCookies'
|
||||
import { defineStore } from 'pinia'
|
||||
import { io, Socket } from 'socket.io-client'
|
||||
@ -102,7 +101,7 @@ export const useGameStore = defineStore('game', {
|
||||
this.connection?.disconnect()
|
||||
|
||||
useCookies().remove('token', {
|
||||
domain: getDomain()
|
||||
domain: config.domain
|
||||
})
|
||||
|
||||
this.connection = null
|
||||
|
Reference in New Issue
Block a user