diff options
| author | Jules Laplace <jules@okfoc.us> | 2015-09-16 15:14:38 -0400 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2015-09-16 15:14:38 -0400 |
| commit | 48e5fec1e86ee8f22ed0e0f3dde5b93f600b7a6f (patch) | |
| tree | fc04dc3e9146f8800d51f6e24ca1b03d92599609 /StoneIsland/platforms/ios/www/js | |
| parent | 164fc4407621b4bd6448dd7790d684635a023726 (diff) | |
phonegap stuff
Diffstat (limited to 'StoneIsland/platforms/ios/www/js')
| -rw-r--r-- | StoneIsland/platforms/ios/www/js/index.js | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/StoneIsland/platforms/ios/www/js/index.js b/StoneIsland/platforms/ios/www/js/index.js index 5720dcf1..5f9ca688 100644 --- a/StoneIsland/platforms/ios/www/js/index.js +++ b/StoneIsland/platforms/ios/www/js/index.js @@ -25,11 +25,18 @@ var app = (function(){ } app.bind = function(){ - if (window.location.href.match("8000")) { app.ready() } - document.addEventListener('deviceready', app.ready, false) + if (window.cordova) { + document.addEventListener('deviceready', app.ready, false) + } + else { + app.ready() + } } app.ready = function(){ + if (window.cordova) { + // cordova.plugins.Keyboard.disableScroll(true) + } app.view = null app.router = new SiteRouter () app.router.route() |
