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