adding security popups for resume
This commit is contained in:
parent
9b21292a68
commit
8dfc2de01c
6 changed files with 42 additions and 106 deletions
|
|
@ -1,14 +1,9 @@
|
|||
'use strict';
|
||||
|
||||
angular.module('copayApp.services').factory('openURLService', function($rootScope, $ionicHistory, $document, $log, $state, platformInfo, lodash, profileService, incomingData, appConfigService) {
|
||||
var DELAY_UNLOCK_TIME = 2 * 60;
|
||||
var root = {};
|
||||
|
||||
root.unlockUntil = null;
|
||||
|
||||
var handleOpenURL = function(args) {
|
||||
root.unlockUntil = Math.floor(Date.now() / 1000) + DELAY_UNLOCK_TIME;
|
||||
$log.debug('Set unlock time until: ' + root.unlockUntil);
|
||||
|
||||
$log.info('Handling Open URL: ' + JSON.stringify(args));
|
||||
// Stop it from caching the first view as one to return when the app opens
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue