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:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user