fetch not working in service worker
<p>i tried to use the fetch event in service worker
but he didnt work for me.</p>

<pre><code>self.addEventListener('activate', function(event) {
  console.log('Activated', event);
  fetch('/embed_testing/notification/main.js').then(response =&gt; 
          function () {
              console.log(response)
          });
});

self.addEventListener('fetch', function(event) {
    console.log("heyyyo");
  if (event.request.url === new URL('/', location).href) {
    event.respondWith(
      new Response("&lt;h1&gt;Hello!&lt;/h1&gt;", {
        headers: {'Content-Type': 'text/html'}
      })
    )
  }
});
</code></pre>

<p>any ideas why it is not working ?</p>