check if using cordova at init.js
This commit is contained in:
parent
d1979f443a
commit
ee8f78d961
2 changed files with 15 additions and 3 deletions
|
|
@ -28,7 +28,7 @@
|
||||||
margin-top: 40px;
|
margin-top: 40px;
|
||||||
margin-left: 0;
|
margin-left: 0;
|
||||||
margin-bottom: -40px;
|
margin-bottom: -40px;
|
||||||
padding: 20px 0 110px 0;
|
padding: 20px 0 90px 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.tab-bar {
|
.tab-bar {
|
||||||
|
|
|
||||||
16
js/init.js
16
js/init.js
|
|
@ -1,6 +1,18 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
angular.element(document).ready(function() {
|
angular.element(document).ready(function() {
|
||||||
// Init the app
|
var startAngular = function () {
|
||||||
angular.bootstrap(document, ['copayApp']);
|
angular.bootstrap(document, ['copayApp']);
|
||||||
|
};
|
||||||
|
|
||||||
|
if (window.cordova !== undefined) {
|
||||||
|
document.addEventListener('deviceready', function() {
|
||||||
|
setTimeout(function(){ navigator.splashscreen.hide(); }, 2000);
|
||||||
|
|
||||||
|
startAngular();
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
startAngular();
|
||||||
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue