// Loads an account ID and redirects const ls = window.localStorage; const maybeId = ls.getItem("beacon:account-id"); if (maybeId) { window.location.pathname = `/${maybeId}`; }