check for unlock time
This commit is contained in:
parent
f0dbbd0960
commit
fdae97ce63
2 changed files with 16 additions and 2 deletions
|
|
@ -1213,6 +1213,14 @@ angular.module('copayApp').config(function(historicLogProvider, $provide, $logPr
|
|||
goTo(defaultView);
|
||||
}
|
||||
|
||||
if (onResume) {
|
||||
var now = Math.floor(Date.now() / 1000);
|
||||
if (now < openURLService.unlockUntil) {
|
||||
$log.debug('Skip startup locking');
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
function goTo(nextView) {
|
||||
nextView = nextView || defaultView;
|
||||
$state.transitionTo(nextView).then(function() {
|
||||
|
|
@ -1293,7 +1301,7 @@ angular.module('copayApp').config(function(historicLogProvider, $provide, $logPr
|
|||
// After everything have been loaded, initialize handler URL
|
||||
$timeout(function() {
|
||||
openURLService.init();
|
||||
}, 1000);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue