diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/app.js | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |
