Update: Adds displayBitcoinCoreFlag

This commit is contained in:
Sam Cheng Hung 2018-04-03 14:28:47 +09:00
commit 195e9190c5
3 changed files with 22 additions and 14 deletions

View file

@ -634,5 +634,24 @@ angular.module('copayApp.services')
storage.remove('receivedTxs-' + walletId, cb);
}
root.checkIfFlagIsSet = function(key) {
return new Promise(function(resolve, reject) {
storage.get(key, function(i, value) {
if (value == null) {
resolve(false);
} else {
resolve(true);
}
});
});
}
root.activateDisplayBitcoinCoreFlag = function() {
var flag = {
initialized: true
};
storage.set('displayBitcoinCoreFlag', flag, function() { });
}
return root;
});