Galaxy WebUI: Unload speed limit panel

This commit is contained in:
firestarsdog
2026-04-20 21:23:55 -04:00
parent bbc1737fbd
commit 91f587f061
@@ -91,7 +91,18 @@ export function SpeedLimits() {
fetchStatus()
if (pollTimer === null) {
pollTimer = setInterval(fetchStatus, 3000)
pollTimer = setInterval(() => {
if (window.location.pathname !== "/download_speed_limits") {
clearInterval(pollTimer)
pollTimer = null
state.fetched = false
return
}
if (document.visibilityState !== "visible") {
return
}
fetchStatus()
}, 3000)
}
}