summaryrefslogtreecommitdiff
path: root/StoneIsland/platforms/ios/www/js/index.js
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2020-12-07 16:48:24 +0100
committerJules Laplace <julescarbon@gmail.com>2020-12-07 16:48:24 +0100
commit0b8387431323023560824ab8f0650591dd0274bc (patch)
tree1ec4a324ff198983c930e5166c9a1c837e71521b /StoneIsland/platforms/ios/www/js/index.js
parentbf0d6b678d635a9839166a370a6ecc32ccb7b3b5 (diff)
build
Diffstat (limited to 'StoneIsland/platforms/ios/www/js/index.js')
-rwxr-xr-xStoneIsland/platforms/ios/www/js/index.js10
1 files changed, 6 insertions, 4 deletions
diff --git a/StoneIsland/platforms/ios/www/js/index.js b/StoneIsland/platforms/ios/www/js/index.js
index 0e9ee355..b61e545d 100755
--- a/StoneIsland/platforms/ios/www/js/index.js
+++ b/StoneIsland/platforms/ios/www/js/index.js
@@ -6,7 +6,7 @@ var app = (function(){
if (window.location.hostname === 'lvh.me' || window.location.hostname === 'dev.stone.giraffe.life' || window.location.hostname === 'staging.stone.giraffe.life') {
console.log('launching in test mode')
- sdk.init({ env: "test" })
+ sdk.init({ env: "development" })
}
else {
sdk.init({ env: "production" })
@@ -115,7 +115,9 @@ var app = (function(){
// }
push.init()
- window.open = cordova.InAppBrowser.open
+ if (window.cordova) {
+ window.open = cordova.InAppBrowser.open
+ }
if (navigator.onLine) {
app.account.connect(window.deepLinkRoute || '/intro')
@@ -150,11 +152,11 @@ var app = (function(){
var refresh_time = +Date.now()
app.paused = function(){}
app.resumed = function(){
- console.log( "app is ready?", app.is_ready )
+ console.log("app resumed")
geo.fetch()
var now = +Date.now()
- if (now - refresh_time > 60 * 60 * 1000) {
+ if (now - refresh_time > 10 * 1000) {
refresh_time = now
app.blog.refresh()
}