优化渲染逻辑
This commit is contained in:
@@ -129,6 +129,11 @@
|
||||
fetchMetrics();
|
||||
fetchNetworkHistory();
|
||||
loadSiteSettings();
|
||||
|
||||
// Initial icon check based on early head script
|
||||
const currentTheme = document.documentElement.classList.contains('light-theme') ? 'light' : 'dark';
|
||||
updateThemeIcons(currentTheme);
|
||||
|
||||
setInterval(fetchMetrics, REFRESH_INTERVAL);
|
||||
setInterval(fetchNetworkHistory, NETWORK_HISTORY_INTERVAL);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user