reverting back
This commit is contained in:
parent
99efa3ef87
commit
2b7ea800ae
@ -197,21 +197,14 @@
|
|||||||
|
|
||||||
let LoginPopup;
|
let LoginPopup;
|
||||||
|
|
||||||
/*
|
|
||||||
$: if ($isOpen) {
|
$: if ($isOpen) {
|
||||||
websocketRealtimeData();
|
websocketRealtimeData();
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
|
|
||||||
onMount(async () => {
|
onMount(async () => {
|
||||||
if (!data?.user) {
|
if (!data?.user) {
|
||||||
LoginPopup = (await import("$lib/components/LoginPopup.svelte")).default;
|
LoginPopup = (await import("$lib/components/LoginPopup.svelte")).default;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($isOpen) {
|
|
||||||
await websocketRealtimeData();
|
|
||||||
console.log("WebSocket restarted");
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
|
|
||||||
afterUpdate(async () => {
|
afterUpdate(async () => {
|
||||||
|
|||||||
@ -591,11 +591,10 @@ function sendMessage(message) {
|
|||||||
body: JSON.stringify(postData),
|
body: JSON.stringify(postData),
|
||||||
}); // make a POST request to the server with the FormData object
|
}); // make a POST request to the server with the FormData object
|
||||||
}
|
}
|
||||||
/*
|
|
||||||
$: if ($isOpen) {
|
$: if ($isOpen) {
|
||||||
websocketRealtimeData();
|
websocketRealtimeData();
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
|
|
||||||
onMount(async () => {
|
onMount(async () => {
|
||||||
displayRules = allRows?.filter((row) =>
|
displayRules = allRows?.filter((row) =>
|
||||||
@ -627,11 +626,6 @@ function sendMessage(message) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
isLoaded = true;
|
isLoaded = true;
|
||||||
|
|
||||||
if ($isOpen) {
|
|
||||||
await websocketRealtimeData();
|
|
||||||
console.log("WebSocket restarted");
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
|
|
||||||
onDestroy(async () => {
|
onDestroy(async () => {
|
||||||
|
|||||||
@ -204,21 +204,15 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
let LoginPopup;
|
let LoginPopup;
|
||||||
/*
|
|
||||||
$: if ($isOpen) {
|
$: if ($isOpen) {
|
||||||
websocketRealtimeData();
|
websocketRealtimeData();
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
|
|
||||||
onMount(async () => {
|
onMount(async () => {
|
||||||
if (!data?.user) {
|
if (!data?.user) {
|
||||||
LoginPopup = (await import("$lib/components/LoginPopup.svelte")).default;
|
LoginPopup = (await import("$lib/components/LoginPopup.svelte")).default;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($isOpen) {
|
|
||||||
await websocketRealtimeData();
|
|
||||||
console.log("WebSocket restarted");
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
|
|
||||||
afterUpdate(async () => {
|
afterUpdate(async () => {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user