summaryrefslogtreecommitdiff
path: root/StoneIsland/www/js/index.js
diff options
context:
space:
mode:
authorJules Laplace <jules@okfoc.us>2016-01-20 23:04:19 +0100
committerJules Laplace <jules@okfoc.us>2016-01-20 23:04:19 +0100
commit0a6a76b07644f38b2599a6bb0c462e82cdecbf8a (patch)
tree74f9659f91842ce49e86a4f8cc864a83ec92e8d9 /StoneIsland/www/js/index.js
parentf47c0196699eed49c6dbc03c857fe1e4368f2b54 (diff)
build
Diffstat (limited to 'StoneIsland/www/js/index.js')
-rwxr-xr-xStoneIsland/www/js/index.js11
1 files changed, 10 insertions, 1 deletions
diff --git a/StoneIsland/www/js/index.js b/StoneIsland/www/js/index.js
index 0770b0f6..4f1747ab 100755
--- a/StoneIsland/www/js/index.js
+++ b/StoneIsland/www/js/index.js
@@ -3,7 +3,7 @@ var app = (function(){
app.init = function(){
- sdk.init({ env: "test" })
+ sdk.init({ env: "production" })
app.bind()
app.build()
@@ -66,6 +66,8 @@ var app = (function(){
if (window.cordova) {
document.addEventListener('pause', app.paused, false)
document.addEventListener('resume', app.resumed, false)
+ document.addEventListener('online', app.online, false)
+ document.addEventListener('offline', app.offline, false)
cordova.plugins.Keyboard.disableScroll(true)
geo.fetch()
}
@@ -92,6 +94,13 @@ var app = (function(){
}
}
+ app.online = function(){
+ console.log(">> ONLINE")
+ }
+ app.offline = function(){
+ console.log(">> OFFLINE")
+ }
+
return app
})()