Removed getDomain func.

This commit is contained in:
2025-02-09 03:34:33 +01:00
parent fcf96a25ae
commit c21e78c2ec
5 changed files with 5 additions and 23 deletions

View File

@ -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