diff options
author | Struan Donald <struan@exo.org.uk> | 2013-06-28 12:51:03 +0100 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2013-06-28 12:51:03 +0100 |
commit | 0620cb76d958a4cbe708b48651f763ff17b6eddf (patch) | |
tree | f1c70752a51f39f8432f35eeca4d6a96b30faba2 /www/js/app.js | |
parent | 3e8b54a49fcd42d8b03bb153ba66484282394e43 (diff) |
make sure device variable exists before trying to use it
Diffstat (limited to 'www/js/app.js')
-rw-r--r-- | www/js/app.js | 2 |
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'; } |