meteor-service-worker icon indicating copy to clipboard operation
meteor-service-worker copied to clipboard

Added conditional wrapper for only http & https

Open mullojo opened this issue 4 years ago • 1 comments

Added this wrapper to the 'fetch' event listener

if (event.request.url.startsWith('http')){
  // only runs for http:// & https:// urls,  prevents error from running on chome-extention:// urls
}

mullojo avatar Jun 13 '21 00:06 mullojo

Good PR but I feel like the console.log are not necessary. Could you remove it.

ilan-schemoul avatar Nov 16 '21 17:11 ilan-schemoul