aboutsummaryrefslogtreecommitdiffstats
path: root/src/app.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/app.js')
-rw-r--r--src/app.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/app.js b/src/app.js
index 58bc242..08a6901 100644
--- a/src/app.js
+++ b/src/app.js
@@ -5487,6 +5487,17 @@ const wakeDone = () => {
try { if (WAKE_PAYLOAD != null && window.CoinosHost && window.CoinosHost.done) window.CoinosHost.done(); } catch {}
};
+// v3.coinos.io/pos: the point of sale, straight away — a bookmark or a
+// home-screen icon for the till. Consumed here (before any feature reads
+// the path) and opened once a wallet is up; the pos feature owns the rest.
+const BOOT_POS = (() => {
+ try {
+ if (!/^\/pos\/?$/i.test(location.pathname)) return false;
+ history.replaceState(null, '', '/' + (location.search || ''));
+ return true;
+ } catch { return false; }
+})();
+if (BOOT_POS) ui.posAtBoot = true;
const INTENT_URI = (() => {
try {
const u = new URLSearchParams(location.search).get('u');