hubl/src/scripts/register-sw.js

11 lines
317 B
JavaScript
Raw Normal View History

2020-11-19 13:04:15 +00:00
// if('serviceWorker' in navigator) {
// var refreshing;
// navigator.serviceWorker.addEventListener('controllerchange', () => {
// if (refreshing) {
// return;
// }
// refreshing = true;
// window.location.reload();
// });
// navigator.serviceWorker.register('/sw.js');
// }