Skip to content

Commit

Permalink
fixed PWA
Browse files Browse the repository at this point in the history
  • Loading branch information
marcrobledo committed May 4, 2018
1 parent 58f7ab0 commit 8132e8c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Empty file added .nojekyll
Empty file.
2 changes: 2 additions & 0 deletions zelda-botw/zelda-botw.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');

Expand Down

0 comments on commit 8132e8c

Please sign in to comment.