<script>
if ("serviceWorker" in navigator) {
  window.addEventListener("load", function () {
    navigator.serviceWorker.register("{{ service_worker_url }}", { scope: "{{ scope }}" });
  });
}
</script>
