From 9f36c2b1631d1746e91da44178189dffd278c4c0 Mon Sep 17 00:00:00 2001 From: Martin Donnelly Date: Mon, 27 Aug 2018 00:58:52 +0100 Subject: [PATCH] Added some Edge specific things, tidied the news layering, added a panel callback system for layered panels. --- src/service-worker.js | 2 +- src/v1/js/app.js | 9 ++++++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/service-worker.js b/src/service-worker.js index d00d962..dcb56ab 100644 --- a/src/service-worker.js +++ b/src/service-worker.js @@ -11,7 +11,7 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. -const CACHE_VERSION = { 'version': '0.0.785' }; +const CACHE_VERSION = { 'version': '0.0.787' }; const PRECACHE = `jubileeData-${CACHE_VERSION.version}`; const RUNTIME = 'runtime'; diff --git a/src/v1/js/app.js b/src/v1/js/app.js index 0c1b729..3237b00 100644 --- a/src/v1/js/app.js +++ b/src/v1/js/app.js @@ -21,11 +21,14 @@ const { NearbyListModel, NearbyListView } = require('./NearbyList'); const { NearbyPlacesView } = require('./NearbyPlaces'); var app = app || {}; -const live = false; +const live = true; if (live) { - window.loc = 'https://jubilee.silvrtree.co.uk'; - window.loc = 'http://localhost:8110'; + const url = new URL(window.location.origin); + console.log('url', url); + + window.loc = url.origin; + if ('serviceWorker' in navigator) { // navigator.serviceWorker.ready.then(function(reg) {