mirror of https://github.com/BTCPrivate/copay.git
check if using cordova at init.js
This commit is contained in:
parent
d1979f443a
commit
ee8f78d961
|
@ -28,7 +28,7 @@
|
|||
margin-top: 40px;
|
||||
margin-left: 0;
|
||||
margin-bottom: -40px;
|
||||
padding: 20px 0 110px 0;
|
||||
padding: 20px 0 90px 0;
|
||||
}
|
||||
|
||||
.tab-bar {
|
||||
|
|
16
js/init.js
16
js/init.js
|
@ -1,6 +1,18 @@
|
|||
'use strict';
|
||||
|
||||
angular.element(document).ready(function() {
|
||||
// Init the app
|
||||
angular.bootstrap(document, ['copayApp']);
|
||||
var startAngular = function () {
|
||||
angular.bootstrap(document, ['copayApp']);
|
||||
};
|
||||
|
||||
if (window.cordova !== undefined) {
|
||||
document.addEventListener('deviceready', function() {
|
||||
setTimeout(function(){ navigator.splashscreen.hide(); }, 2000);
|
||||
|
||||
startAngular();
|
||||
});
|
||||
} else {
|
||||
startAngular();
|
||||
}
|
||||
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue