ilan-schemoul / meteor-service-worker

An universal service worker for meteor apps
MIT License
137 stars 26 forks source link

Added conditional wrapper for only http & https #24

Closed mullojo closed 1 month ago

mullojo commented 2 years ago

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
}
ilan-schemoul commented 2 years ago

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

ilan-schemoul commented 1 month ago

I removed the console.log