mirror of https://github.com/BTCPrivate/copay.git
not use idle timeout and urihandler if cordova is active
This commit is contained in:
parent
005853efac
commit
2063f74dab
|
@ -106,8 +106,11 @@ angular
|
||||||
})
|
})
|
||||||
.run(function($rootScope, $location, $idle, gettextCatalog, uriHandler) {
|
.run(function($rootScope, $location, $idle, gettextCatalog, uriHandler) {
|
||||||
gettextCatalog.currentLanguage = config.defaultLanguage;
|
gettextCatalog.currentLanguage = config.defaultLanguage;
|
||||||
$idle.watch();
|
// not for mobileApp
|
||||||
uriHandler.register();
|
if (!window.cordova) {
|
||||||
|
$idle.watch();
|
||||||
|
uriHandler.register();
|
||||||
|
}
|
||||||
$rootScope.$on('$routeChangeStart', function(event, next, current) {
|
$rootScope.$on('$routeChangeStart', function(event, next, current) {
|
||||||
if (!localStorage || localStorage.length < 1) {
|
if (!localStorage || localStorage.length < 1) {
|
||||||
$location.path('unsupported');
|
$location.path('unsupported');
|
||||||
|
|
Loading…
Reference in New Issue