From 48e5fec1e86ee8f22ed0e0f3dde5b93f600b7a6f Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Wed, 16 Sep 2015 15:14:38 -0400 Subject: phonegap stuff --- StoneIsland/www/js/index.js | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'StoneIsland/www/js/index.js') 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() -- cgit v1.2.3-70-g09d2