From 4efc64bee92900cf9fe53998837fc0e39d8c943e Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Fri, 23 Oct 2026 17:03:45 -0700 Subject: 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 Claude-Session: https://claude.ai/code/session_01QjVvE4YAcK3AGwV7kZXeN4 --- src/app.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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 -- cgit v1.2.3