aboutsummaryrefslogtreecommitdiffstats
path: root/src/app.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/app.js')
-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