aboutsummaryrefslogtreecommitdiff
path: root/assets/sw-register.js
blob: 583532c39bdecbdab1f753b7dabec0498eb418b4 (plain)
1
2
3
4
5
6
if (navigator.serviceWorker) {
  navigator.serviceWorker.register(
    "{{ "/sw.js" | relURL }}", 
    { scope: "{{ "/" | relURL }}" }
  );
}