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