check if there is not profile, to redir
This commit is contained in:
parent
bdaf40de48
commit
b03a3f1391
9 changed files with 52 additions and 28 deletions
|
|
@ -18,12 +18,14 @@ var id = 0;
|
|||
*/
|
||||
function Storage(opts) {
|
||||
preconditions.checkArgument(opts);
|
||||
preconditions.checkArgument(opts.password);
|
||||
preconditions.checkArgument(!opts.passphrase);
|
||||
|
||||
this.wListCache = {};
|
||||
this.__uniqueid = ++id;
|
||||
this.passphraseConfig = opts.passphrase;
|
||||
this.setPassword(opts.password);
|
||||
this.passphraseConfig = opts.passphraseConfig;
|
||||
|
||||
if (opts.password)
|
||||
this.setPassword(opts.password);
|
||||
|
||||
try {
|
||||
this.db = opts.db || localStorage;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue