private mode take two

This commit is contained in:
Stewart Allen 2020-06-13 11:59:49 -04:00
commit 80fcc27039
2 changed files with 5 additions and 10 deletions

View file

@ -20,11 +20,10 @@
SETUP = parseOpt(LOC.search.substring(1)),
SECURE = isSecure(LOC.protocol),
LOCAL = self.debug && !SETUP.remote,
SDB = MOTO.KV;
SDB = MOTO.KV,
PARA = SDB.getItem("__paranoid__");
if (SDB.isLocal()) {
alert(SDB.getItem("__local__"));
}
if (PARA) alert(PARA);
let ODB = KIRI.odb = new MOTO.Storage(SETUP.d ? SETUP.d[0] : 'kiri'),
SPACE = KIRI.space = MOTO.Space,

View file

@ -13,8 +13,8 @@
self.moto.KV.getItem('__test');
} catch (e) {
self.moto.KV = new KV();
kv.setItem("__local__", "in private browsing mode or 3rd party storage blocked. application may not function.");
console.log(kv.getItem("__local__"));
kv.setItem("__paranoid__", "in private browsing mode or 3rd party storage blocked. application may not function.");
console.log(kv.getItem("__paranoid__"));
}
/**
@ -52,8 +52,4 @@
}
};
KP.isLocal = function() {
return this.getItem("__local__");
};
})();