0
0
mirror of https://github.com/marcrobledo/savegame-editors.git synced 2025-04-24 08:25:11 +00:00

fixed PWA

This commit is contained in:
marcrobledo 2018-05-04 11:54:10 +02:00
parent 58f7ab07b9
commit 8132e8cb5c
2 changed files with 2 additions and 0 deletions

0
.nojekyll Normal file
View File

View File

@ -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');