mirror of
https://github.com/apache/cordova-android.git
synced 2025-01-19 07:02:51 +08:00
Hacking in the firing of the event
This commit is contained in:
parent
8dcfe18112
commit
72a6748987
@ -10,6 +10,7 @@
|
||||
<script type="text/javascript" charset="utf-8">
|
||||
|
||||
var deviceInfo = function(){
|
||||
console.log('setting the dom nodes');
|
||||
document.getElementById("platform").innerHTML = device.platform;
|
||||
document.getElementById("version").innerHTML = device.version;
|
||||
document.getElementById("uuid").innerHTML = device.uuid;
|
||||
@ -102,9 +103,12 @@
|
||||
|
||||
function init(){
|
||||
document.addEventListener("touchmove", preventBehavior, false);
|
||||
setTimeout(deviceInfo, 1);
|
||||
document.addEventListener("deviceReady", deviceInfo, true);
|
||||
console.log('we are in init');
|
||||
}
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
</head>
|
||||
<body onload="init();" id="stage" class="theme">
|
||||
|
Loading…
Reference in New Issue
Block a user