From 2063f74dab00215c968a98cdfa12a1b7505b9416 Mon Sep 17 00:00:00 2001 From: Gustavo Maximiliano Cortez Date: Tue, 25 Nov 2014 20:10:42 -0300 Subject: [PATCH] not use idle timeout and urihandler if cordova is active --- js/routes.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/js/routes.js b/js/routes.js index 21e31a442..a9e0a59e7 100644 --- a/js/routes.js +++ b/js/routes.js @@ -106,8 +106,11 @@ angular }) .run(function($rootScope, $location, $idle, gettextCatalog, uriHandler) { gettextCatalog.currentLanguage = config.defaultLanguage; - $idle.watch(); - uriHandler.register(); + // not for mobileApp + if (!window.cordova) { + $idle.watch(); + uriHandler.register(); + } $rootScope.$on('$routeChangeStart', function(event, next, current) { if (!localStorage || localStorage.length < 1) { $location.path('unsupported');