summaryrefslogtreecommitdiff
path: root/StoneIsland/www/js/index.js
diff options
context:
space:
mode:
authorJules Laplace <jules@okfoc.us>2015-09-16 15:14:38 -0400
committerJules Laplace <jules@okfoc.us>2015-09-16 15:14:38 -0400
commit48e5fec1e86ee8f22ed0e0f3dde5b93f600b7a6f (patch)
treefc04dc3e9146f8800d51f6e24ca1b03d92599609 /StoneIsland/www/js/index.js
parent164fc4407621b4bd6448dd7790d684635a023726 (diff)
phonegap stuff
Diffstat (limited to 'StoneIsland/www/js/index.js')
-rw-r--r--StoneIsland/www/js/index.js11
1 files changed, 9 insertions, 2 deletions
diff --git a/StoneIsland/www/js/index.js b/StoneIsland/www/js/index.js
index 5720dcf1..5f9ca688 100644
--- a/StoneIsland/www/js/index.js
+++ b/StoneIsland/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()