summaryrefslogtreecommitdiff
path: root/StoneIsland/www/js/index.js
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2020-10-20 16:33:39 +0200
committerJules Laplace <julescarbon@gmail.com>2020-10-20 16:33:39 +0200
commit4ee6e3f05ff534df646ed2c9169002cae615b1bc (patch)
tree694ded72d04d3c47b44fd255acf32d06ce18a909 /StoneIsland/www/js/index.js
parentd02fb549470a3293f913258cf88efc8e6d4d78ba (diff)
window cordova
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()
}