mirror of
https://github.com/apache/cordova-android.git
synced 2025-01-19 15:12:51 +08:00
Weirdness with the timing of the PhoneGap loading investigated
This commit is contained in:
parent
08c42eac97
commit
736fe7ccc7
@ -9,8 +9,7 @@
|
||||
<script type="text/javascript" charset="utf-8" src="phonegap.js"></script>
|
||||
<script type="text/javascript" charset="utf-8">
|
||||
|
||||
var deviceInfo = function(){
|
||||
console.log(device.platform);
|
||||
var deviceInfo = function(){
|
||||
document.getElementById("platform").innerHTML = device.platform;
|
||||
document.getElementById("version").innerHTML = device.version;
|
||||
document.getElementById("uuid").innerHTML = device.uuid;
|
||||
@ -63,7 +62,7 @@
|
||||
|
||||
function init(){
|
||||
// Android is SLOW!!!! This is not present yet!
|
||||
setTimeout(deviceInfo, 200);
|
||||
setTimeout(deviceInfo, 1);
|
||||
document.addEventListener("touchmove", preventBehavior, false);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user