not use idle timeout and urihandler if cordova is active
This commit is contained in:
parent
005853efac
commit
2063f74dab
1 changed files with 5 additions and 2 deletions
|
|
@ -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');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue