Fix app initialisation

This commit is contained in:
Gustavo Maximiliano Cortez 2017-02-20 11:55:48 -03:00
commit d27a77cb1f
No known key found for this signature in database
GPG key ID: 15EDAD8D9F2EB1AF

View file

@ -1096,8 +1096,6 @@ angular.module('copayApp').config(function(historicLogProvider, $provide, $logPr
uxLanguage.init(); uxLanguage.init();
$ionicPlatform.ready(function() { $ionicPlatform.ready(function() {
if (platformInfo.isCordova) {
if (screen.width < 768) if (screen.width < 768)
screen.lockOrientation('portrait'); screen.lockOrientation('portrait');
@ -1154,7 +1152,7 @@ angular.module('copayApp').config(function(historicLogProvider, $provide, $logPr
$ionicPlatform.on('menubutton', function() { $ionicPlatform.on('menubutton', function() {
window.location = '#/preferences'; window.location = '#/preferences';
}); });
} });
$log.info('Init profile...'); $log.info('Init profile...');
// Try to open local profile // Try to open local profile
@ -1191,7 +1189,6 @@ angular.module('copayApp').config(function(historicLogProvider, $provide, $logPr
openURLService.init(); openURLService.init();
}, 1000); }, 1000);
}); });
});
if (platformInfo.isNW) { if (platformInfo.isNW) {
var gui = require('nw.gui'); var gui = require('nw.gui');