Support loading platform cordova.js files if available
[cordova-mobile-spec.git] / main.js
diff --git a/main.js b/main.js
index 8f99dcc749598a891a3162596417609aa4a3c92a..66c1bd3837bfaf55b6c2df774e370c50d801a89a 100644 (file)
--- a/main.js
+++ b/main.js
@@ -24,6 +24,7 @@ var deviceInfo = function() {
     document.getElementById("version").innerHTML = device.version;
     document.getElementById("uuid").innerHTML = device.uuid;
     document.getElementById("name").innerHTML = device.name;
+    document.getElementById("model").innerHTML = device.model;
     document.getElementById("width").innerHTML = screen.width;
     document.getElementById("height").innerHTML = screen.height;
     document.getElementById("colorDepth").innerHTML = screen.colorDepth;
@@ -158,4 +159,5 @@ function init() {
     // doesn't have a scroll button
     // document.addEventListener("touchmove", preventBehavior, false);
     document.addEventListener("deviceready", deviceInfo, true);
+    document.getElementById("user-agent").textContent = navigator.userAgent;
 }