Use local sfjs
This commit is contained in:
@@ -36,7 +36,8 @@ angular.module('app')
|
||||
|
||||
function load() {
|
||||
// pass keys to storageManager to decrypt storage
|
||||
storageManager.setKeys(passcodeManager.keys());
|
||||
// Update: Wait, why? passcodeManager already handles this.
|
||||
// storageManager.setKeys(passcodeManager.keys());
|
||||
|
||||
openDatabase();
|
||||
// Retrieve local data and begin sycing timer
|
||||
|
||||
@@ -35,7 +35,7 @@ angular.module('app')
|
||||
}
|
||||
|
||||
this._keys = keys;
|
||||
this.decryptLocalStorage(keys);
|
||||
this.decryptLocalStorage(keys, params);
|
||||
this._locked = false;
|
||||
callback(true);
|
||||
});
|
||||
@@ -76,8 +76,8 @@ angular.module('app')
|
||||
storageManager.setItemsMode(authManager.isEphemeralSession() ? StorageManager.Ephemeral : StorageManager.FixedEncrypted, true);
|
||||
}
|
||||
|
||||
this.decryptLocalStorage = function(keys) {
|
||||
storageManager.setKeys(keys);
|
||||
this.decryptLocalStorage = function(keys, authParams) {
|
||||
storageManager.setKeys(keys, authParams);
|
||||
storageManager.decryptStorage();
|
||||
}
|
||||
}
|
||||
|
||||
3783
package-lock.json
generated
3783
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -34,7 +34,7 @@
|
||||
"karma-jasmine": "^1.1.0",
|
||||
"karma-phantomjs-launcher": "^1.0.2",
|
||||
"sn-stylekit": "1.0.12",
|
||||
"standard-file-js": "0.0.14"
|
||||
"standard-file-js": "file:~/Desktop/sf/sfjs"
|
||||
},
|
||||
"license": "GPL-3.0"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user