Update: Adds displayBitcoinCoreFlag
This commit is contained in:
parent
8d9631200b
commit
195e9190c5
3 changed files with 22 additions and 14 deletions
|
|
@ -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;
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue