Skip to content

Commit

Permalink
make service worker updateable #5
Browse files Browse the repository at this point in the history
  • Loading branch information
michivonah committed Sep 11, 2022
1 parent 66f86a1 commit bd78bf8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ <h2>Copyright</h2>
// show current tool
changeTool();
// install service worker
if('serviceWorker' in navigator) navigator.serviceWorker.register('/service-worker.js');
if('serviceWorker' in navigator) navigator.serviceWorker.register('/service-worker.js?v=1-0-1');
// add eventlistener for smartphone navigation
var navButtons = document.querySelectorAll('.toolCategoryLabel');
navButtons.forEach(obj => obj.addEventListener("click", toggleNavigation));
Expand Down

0 comments on commit bd78bf8

Please sign in to comment.