Fix app initialisation
This commit is contained in:
parent
e519517167
commit
d27a77cb1f
1 changed files with 79 additions and 82 deletions
|
|
@ -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');
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue