diff --git a/toys/facelight/app.js b/toys/facelight/app.js index d4d20f6..46befc9 100644 --- a/toys/facelight/app.js +++ b/toys/facelight/app.js @@ -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") {