Make it a service worker

This commit is contained in:
Neale Pickett 2021-03-24 09:56:07 -06:00
parent edf653cfe0
commit e9c4f78d98
1 changed files with 3 additions and 0 deletions

View File

@ -59,6 +59,9 @@ function changeTemp(e) {
function init() {
document.querySelector("#temp").addEventListener("input", changeTemp)
changeTemp()
if (navigator.serviceWorker) {
navigator.serviceWorker.register("sw.js")
}
}
if (document.readyState === "loading") {