private mode take two
This commit is contained in:
parent
680d6ed1b2
commit
80fcc27039
2 changed files with 5 additions and 10 deletions
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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__");
|
||||
};
|
||||
|
||||
})();
|
||||
|
|
|
|||
Loading…
Reference in a new issue