From a62819260d9c0d9bc0292f19be896c2c9b5ab422 Mon Sep 17 00:00:00 2001 From: rstular Date: Wed, 29 Jan 2020 12:49:35 +0100 Subject: Initial commit --- js/app.js | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 js/app.js (limited to 'js/app.js') diff --git a/js/app.js b/js/app.js new file mode 100644 index 0000000..4ad37f2 --- /dev/null +++ b/js/app.js @@ -0,0 +1,5 @@ +if ("serviceWorker" in navigator) { + navigator.serviceWorker.register("/sw.js") + .then(() => console.log("Service worker registered")) + .catch((err) => console.log("Service worker registration failed", err)); +} \ No newline at end of file -- cgit v1.2.3