aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-10-23 17:03:45 -0700
committerAdam Soltys <[email protected]>2026-10-23 17:03:45 -0700
commit4efc64bee92900cf9fe53998837fc0e39d8c943e (patch)
treec4628aa66819cefd1d134d69809c6c7f68d8aafd
parent79c12aee939c17702cb3ad17c64eb7394176ec66 (diff)
downloadcoinosv3-4efc64bee92900cf9fe53998837fc0e39d8c943e.tar.gz
coinosv3-4efc64bee92900cf9fe53998837fc0e39d8c943e.zip
The single-file build boots again: app.js exported its safe-mode helpers, and a classic inline script cannot carry an export (standalone.html threw "Unexpected token 'export'" since b3cee21; nothing imported them)
Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01QjVvE4YAcK3AGwV7kZXeN4
-rw-r--r--src/app.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/app.js b/src/app.js
index 8d73b71..1337300 100644
--- a/src/app.js
+++ b/src/app.js
@@ -589,9 +589,9 @@ let _bootDeciding = true;
// starts): the app notes the phase it reaches, and clears the count once it
// has lived eight seconds or leaves cleanly. A page iOS kills while opening
// does neither, so the third start in a row opens in safe mode.
-export function bootPhase(p) { try { localStorage.setItem('coinos-boot-phase', p); } catch {} }
+function bootPhase(p) { try { localStorage.setItem('coinos-boot-phase', p); } catch {} }
function bootSettled() { try { localStorage.removeItem('coinos-boot'); } catch {} }
-export const safeBoot = () => !!(typeof window !== 'undefined' && window.__safeBoot);
+const safeBoot = () => !!(typeof window !== 'undefined' && window.__safeBoot);
document.addEventListener('visibilitychange', () => { if (document.visibilityState === 'hidden') bootSettled(); });
addEventListener('pagehide', bootSettled);
// Belt and braces: a boot path that returns early (or throws) must not leave