From 91f587f06167af0aa2c655445140561a82c602de Mon Sep 17 00:00:00 2001 From: firestarsdog <229254897+firestarsdog@users.noreply.github.com> Date: Mon, 20 Apr 2026 21:23:55 -0400 Subject: [PATCH] Galaxy WebUI: Unload speed limit panel --- .../assets/components/tools/speed_limits.js | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/starpilot/system/the_pond/assets/components/tools/speed_limits.js b/starpilot/system/the_pond/assets/components/tools/speed_limits.js index 84d3aa292..648460583 100644 --- a/starpilot/system/the_pond/assets/components/tools/speed_limits.js +++ b/starpilot/system/the_pond/assets/components/tools/speed_limits.js @@ -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) } }