fix: ensure watchlist interval is only created once
This commit is contained in:
+4
-2
@@ -411,15 +411,17 @@ document.addEventListener('DOMContentLoaded', () => {
|
|||||||
displayWatchlist();
|
displayWatchlist();
|
||||||
}
|
}
|
||||||
window.watchlistTabLoaded = true;
|
window.watchlistTabLoaded = true;
|
||||||
}
|
|
||||||
|
|
||||||
// Start 30-second auto-refresh interval for watchlist
|
// Start 30-second auto-refresh interval for watchlist (only once)
|
||||||
if (typeof displayWatchlist === 'function') {
|
if (typeof displayWatchlist === 'function') {
|
||||||
watchlistRefreshInterval = setInterval(() => {
|
watchlistRefreshInterval = setInterval(() => {
|
||||||
displayWatchlist();
|
displayWatchlist();
|
||||||
}, 30000);
|
}, 30000);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}, 100);
|
}, 100);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user