diff options
author | Struan Donald <struan@exo.org.uk> | 2013-04-23 15:48:41 +0100 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2013-04-23 15:48:41 +0100 |
commit | 6b1b99ca0d5cd3a3708de9b280ed9b24f17b9dab (patch) | |
tree | e1bc86088162453da2b2412839e920354bcdc62d /www/js/app.js | |
parent | 630aac679275d9d1dc561e3f331b2c550dd0ff0c (diff) |
small tweaks to try and resolve android startup issues
Diffstat (limited to 'www/js/app.js')
-rw-r--r-- | www/js/app.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/www/js/app.js b/www/js/app.js index d7a43a8..e9ef752 100644 --- a/www/js/app.js +++ b/www/js/app.js @@ -165,5 +165,7 @@ var androidStartUp = function() { } }; -document.addEventListener('deviceready', FMS.initialize, false); -window.setTimeout( androidStartUp, 2000 ); +function onload() { + document.addEventListener('deviceready', FMS.initialize, false); + window.setTimeout( androidStartUp, 2000 ); +} |