remove all wss
This commit is contained in:
parent
a76c87b3df
commit
0fe98e1b11
@ -305,7 +305,7 @@ onMount(async () => {
|
||||
//const endTime = currentDateTime.set({ hour: 22, minute: 0 });
|
||||
// Check if it's not a weekend and the current time is within the specified range
|
||||
|
||||
await websocketRealtimeData()
|
||||
//await websocketRealtimeData()
|
||||
|
||||
|
||||
// Add a scroll event listener
|
||||
|
||||
@ -314,11 +314,12 @@ async function fetchPortfolio()
|
||||
//const endTime = currentDateTime.set({ hour: 22, minute: 0 });
|
||||
// Check if it's not a weekend and the current time is within the specified range
|
||||
|
||||
|
||||
/*
|
||||
if ($isOpen) //&& currentDateTime > startTime && currentDateTime < endTime
|
||||
{
|
||||
await websocketRealtimeData()
|
||||
}
|
||||
*/
|
||||
|
||||
// Add a scroll event listener
|
||||
window.addEventListener('scroll', handleScroll);
|
||||
|
||||
@ -463,10 +463,11 @@ function daysLeft(targetDate) {
|
||||
});
|
||||
|
||||
isLoaded = true;
|
||||
|
||||
/*
|
||||
if ($isOpen) {
|
||||
await websocketRealtimeData();
|
||||
}
|
||||
*/
|
||||
|
||||
|
||||
|
||||
|
||||
@ -226,11 +226,12 @@ async function fetchPortfolio()
|
||||
//SellTrade = (await import('$lib/components/SellTrade.svelte')).default;
|
||||
PriceAlert = (await import("$lib/components/PriceAlert.svelte")).default;
|
||||
}
|
||||
|
||||
/*
|
||||
if ($isOpen) {
|
||||
//&& currentDateTime > startTime && currentDateTime < endTime
|
||||
await websocketRealtimeData();
|
||||
}
|
||||
}*/
|
||||
|
||||
});
|
||||
|
||||
afterUpdate(async () => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user