mirror of
https://github.com/marcrobledo/savegame-editors.git
synced 2025-04-28 08:55:13 +00:00
fixed PWA
This commit is contained in:
parent
58f7ab07b9
commit
8132e8cb5c
@ -927,6 +927,8 @@ function onScroll(){
|
|||||||
|
|
||||||
window.addEventListener('load',function(){
|
window.addEventListener('load',function(){
|
||||||
/* service worker */
|
/* service worker */
|
||||||
|
if(location.protocol==='http:')
|
||||||
|
location.href=window.location.href.replace('http:','https:');
|
||||||
if('serviceWorker' in navigator)
|
if('serviceWorker' in navigator)
|
||||||
navigator.serviceWorker.register('_cache_service_worker.js');
|
navigator.serviceWorker.register('_cache_service_worker.js');
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user