From 8132e8cb5cf871ac1979d68f09cf2f348cc576c0 Mon Sep 17 00:00:00 2001 From: marcrobledo Date: Fri, 4 May 2018 11:54:10 +0200 Subject: [PATCH] fixed PWA --- .nojekyll | 0 zelda-botw/zelda-botw.js | 2 ++ 2 files changed, 2 insertions(+) create mode 100644 .nojekyll diff --git a/.nojekyll b/.nojekyll new file mode 100644 index 0000000..e69de29 diff --git a/zelda-botw/zelda-botw.js b/zelda-botw/zelda-botw.js index 0c4690f..3a47d6d 100644 --- a/zelda-botw/zelda-botw.js +++ b/zelda-botw/zelda-botw.js @@ -927,6 +927,8 @@ function onScroll(){ window.addEventListener('load',function(){ /* service worker */ + if(location.protocol==='http:') + location.href=window.location.href.replace('http:','https:'); if('serviceWorker' in navigator) navigator.serviceWorker.register('_cache_service_worker.js');