diff options
Diffstat (limited to 'assets/sw-register.js')
-rw-r--r-- | assets/sw-register.js | 6 |
1 files changed, 6 insertions, 0 deletions
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 }}" } + ); +} |