1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-19 01:33:33 +00:00

convert methods to promises

This commit is contained in:
Kyle Spearrin
2017-11-02 08:54:40 -04:00
parent 54a909ab24
commit c3704c3dfd
7 changed files with 86 additions and 89 deletions

View File

@@ -1,4 +1,4 @@
angular
angular
.module('bit.settings')
.controller('settingsController', function ($scope, $state, SweetAlert, utilsService, $analytics,
@@ -31,7 +31,7 @@
}
chrome.storage.local.set(obj, function () {
cryptoService.getKeyHash(function (keyHash) {
cryptoService.getKeyHash().then(function (keyHash) {
if (keyHash) {
cryptoService.toggleKey();
}