From 9719692512325b5f88de666281ba286343408010 Mon Sep 17 00:00:00 2001 From: Alex Shpak Date: Sun, 12 Apr 2020 20:50:03 +0200 Subject: Introduce serviceWorker, disabled by default --- assets/sw-register.js | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 assets/sw-register.js (limited to 'assets/sw-register.js') diff --git a/assets/sw-register.js b/assets/sw-register.js new file mode 100644 index 0000000..583532c --- /dev/null +++ b/assets/sw-register.js @@ -0,0 +1,6 @@ +if (navigator.serviceWorker) { + navigator.serviceWorker.register( + "{{ "/sw.js" | relURL }}", + { scope: "{{ "/" | relURL }}" } + ); +} -- cgit v1.2.3