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:
parent
58f7ab07b9
commit
8132e8cb5c
@ -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');
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user