update hostname
This commit is contained in:
+1
-1
@@ -44,7 +44,7 @@ type websocketData = {
|
|||||||
// dev stuff
|
// dev stuff
|
||||||
|
|
||||||
const store = useKillStore()
|
const store = useKillStore()
|
||||||
const socket = new WebSocket('wss://tone.sleepycat.date/v2/client/websocket')
|
const socket = new WebSocket('wss://toneapi.ovh/v2/client/websocket')
|
||||||
socket.onmessage = function (e) {
|
socket.onmessage = function (e) {
|
||||||
if (e.data === 'ping') return socket.send('pong')
|
if (e.data === 'ping') return socket.send('pong')
|
||||||
const data = JSON.parse(e.data)
|
const data = JSON.parse(e.data)
|
||||||
|
|||||||
+1
-1
@@ -181,7 +181,7 @@ export const useKillStore = defineStore('kill', {
|
|||||||
// console.log(isRef(entry), this.$state.killData)
|
// console.log(isRef(entry), this.$state.killData)
|
||||||
}
|
}
|
||||||
fetchWithLoading(
|
fetchWithLoading(
|
||||||
`https://tone.sleepycat.date/v2/client/${type}?` +
|
`https://toneapi.ovh/v2/client/${type}?` +
|
||||||
filter?.toURLSearchParams() ?? '',
|
filter?.toURLSearchParams() ?? '',
|
||||||
(progress) => {
|
(progress) => {
|
||||||
if (entry && progress !== 1 && unref(entry).progress.value !== 1) {
|
if (entry && progress !== 1 && unref(entry).progress.value !== 1) {
|
||||||
|
|||||||
Reference in New Issue
Block a user