summaryrefslogtreecommitdiff
path: root/StoneIsland/www/js/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'StoneIsland/www/js/index.js')
-rwxr-xr-xStoneIsland/www/js/index.js8
1 files changed, 5 insertions, 3 deletions
diff --git a/StoneIsland/www/js/index.js b/StoneIsland/www/js/index.js
index 0e9ee355..8b6d2914 100755
--- a/StoneIsland/www/js/index.js
+++ b/StoneIsland/www/js/index.js
@@ -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 > 60 * 1000) {
refresh_time = now
app.blog.refresh()
}