Prettier Linting
This commit is contained in:
parent
3734b89970
commit
a4806e13ea
11 changed files with 243 additions and 201 deletions
src/routes/servers
|
@ -6,7 +6,7 @@
|
|||
import type { Heartbeat } from '$lib/types/uptime-kuma-types';
|
||||
import ServerCard from '$lib/components/ServerCard.svelte';
|
||||
import { socketStore } from '$lib/stores/socketStore';
|
||||
import {uptimeStore} from "$lib/stores/uptimeStore";
|
||||
import { uptimeStore } from '$lib/stores/uptimeStore';
|
||||
|
||||
let { data }: { data: { promise: Promise<string> } } = $props();
|
||||
|
||||
|
@ -30,12 +30,11 @@
|
|||
if (token) {
|
||||
if (!socket.connected) {
|
||||
socket.connect();
|
||||
}
|
||||
else {
|
||||
console.log("already connected");
|
||||
} else {
|
||||
console.log('already connected');
|
||||
}
|
||||
socket.on('connect', () => {
|
||||
console.log("logging in")
|
||||
console.log('logging in');
|
||||
socket.emit('loginByToken', token, () => {});
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue