Created
May 20, 2011 19:01
-
-
Save alunny/983550 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<body></body> | |
<script src="phonegap.js"></script> | |
<script> | |
function assert(msg, booleanCondition) { | |
if (!booleanCondition) { | |
alert("assertion failed: " + msg); | |
return false; | |
} else { | |
return true; | |
} | |
} | |
document.addEventListener('deviceready', function () { | |
assert("device.uuid is defined", typeof device.uuid == "string"); | |
}, false); | |
</script> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment