Use local sfjs

This commit is contained in:
Mo Bitar
2018-05-15 12:56:38 -05:00
parent 543019e63c
commit 0ba223e604
4 changed files with 3785 additions and 9 deletions

View File

@@ -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

View File

@@ -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

File diff suppressed because it is too large Load Diff

View File

@@ -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"
}