summaryrefslogtreecommitdiff
path: root/StoneIsland/platforms/ios/www/js/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'StoneIsland/platforms/ios/www/js/index.js')
-rw-r--r--StoneIsland/platforms/ios/www/js/index.js11
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()