Files
StarPilot/openpilot/starpilot/galaxy/web/js/boot.js
T
Prabhaav Pillai 9bf387e709 (Another second) round of Galaxy UI bug fixes
Fixed logo/search overlap by aligning responsive breakpoints and preventing logo shrink.
Mobile search expands across the bar; closing it restores controls and keyboard focus.
Parked uses a small icon on phones, with an accessible label; desktop retains the text.
Verified no overlaps or page overflow at nine widths, from 320px to 1440px.
2026-10-06 00:23:54 -04:00

16 lines
610 B
JavaScript

const status = document.getElementById("galaxy-boot")
const message = status.querySelector("p")
const retry = status.querySelector("button")
retry.addEventListener("click", () => location.reload())
function failed() {
message.textContent = "Galaxy could not finish opening. Check your connection and try again."
status.classList.add("gx-boot--failed")
retry.hidden = false
}
const timer = setTimeout(failed, 10000)
import("./app.js").then(() => {
clearTimeout(timer)
if (document.querySelector("#galaxy-app .gx-app")) status.remove()
else failed()
}).catch(() => { clearTimeout(timer); failed() })