aboutsummaryrefslogtreecommitdiffstats
path: root/www/js/app.js
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2013-06-28 12:51:03 +0100
committerStruan Donald <struan@exo.org.uk>2013-06-28 12:51:03 +0100
commit0620cb76d958a4cbe708b48651f763ff17b6eddf (patch)
treef1c70752a51f39f8432f35eeca4d6a96b30faba2 /www/js/app.js
parent3e8b54a49fcd42d8b03bb153ba66484282394e43 (diff)
make sure device variable exists before trying to use it
Diffstat (limited to 'www/js/app.js')
-rw-r--r--www/js/app.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/www/js/app.js b/www/js/app.js
index 5c3b655..f416781 100644
--- a/www/js/app.js
+++ b/www/js/app.js
@@ -143,7 +143,7 @@ var tpl = {
FMS.initialized = 1;
tpl.loadTemplates( FMS.templates, function() {
- if ( device.platform === 'Android' ) {
+ if ( typeof device !== 'undefined' && device.platform === 'Android' ) {
$.mobile.defaultPageTransition = 'none';
}