From 4ee6e3f05ff534df646ed2c9169002cae615b1bc Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Tue, 20 Oct 2020 16:33:39 +0200 Subject: window cordova --- StoneIsland/config.xml | 2 +- .../xcschemes/xcschememanagement.plist | 4 ++-- .../user.xcuserdatad/UserInterfaceState.xcuserstate | Bin 21185 -> 21238 bytes StoneIsland/www/js/index.js | 8 +++++--- 4 files changed, 8 insertions(+), 6 deletions(-) diff --git a/StoneIsland/config.xml b/StoneIsland/config.xml index dc1f60f8..70a999ee 100755 --- a/StoneIsland/config.xml +++ b/StoneIsland/config.xml @@ -1,5 +1,5 @@ - + Stone Island Stone Island diff --git a/StoneIsland/platforms/ios/CordovaLib/CordovaLib.xcodeproj/xcuserdata/user.xcuserdatad/xcschemes/xcschememanagement.plist b/StoneIsland/platforms/ios/CordovaLib/CordovaLib.xcodeproj/xcuserdata/user.xcuserdatad/xcschemes/xcschememanagement.plist index ca81e886..6408f0cb 100644 --- a/StoneIsland/platforms/ios/CordovaLib/CordovaLib.xcodeproj/xcuserdata/user.xcuserdatad/xcschemes/xcschememanagement.plist +++ b/StoneIsland/platforms/ios/CordovaLib/CordovaLib.xcodeproj/xcuserdata/user.xcuserdatad/xcschemes/xcschememanagement.plist @@ -7,12 +7,12 @@ Cordova.xcscheme_^#shared#^_ orderHint - 27 + 26 CordovaLib.xcscheme_^#shared#^_ orderHint - 26 + 27 diff --git a/StoneIsland/platforms/ios/Stone Island.xcworkspace/xcuserdata/user.xcuserdatad/UserInterfaceState.xcuserstate b/StoneIsland/platforms/ios/Stone Island.xcworkspace/xcuserdata/user.xcuserdatad/UserInterfaceState.xcuserstate index 8fe0f38e..fc6981f5 100644 Binary files a/StoneIsland/platforms/ios/Stone Island.xcworkspace/xcuserdata/user.xcuserdatad/UserInterfaceState.xcuserstate and b/StoneIsland/platforms/ios/Stone Island.xcworkspace/xcuserdata/user.xcuserdatad/UserInterfaceState.xcuserstate differ 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() } -- cgit v1.2.3-70-g09d2