firebase / friendlyeats-web

Apache License 2.0
493 stars 412 forks source link

We register a service workers for nothing? #13

Closed nicolasgarnier closed 7 years ago

nicolasgarnier commented 7 years ago

The app registers an empty service workers. it seems unsused. In FriendlyEats.Data.js:

  if (navigator.serviceWorker) {
    navigator.serviceWorker
      .register("/sw.js")
      .then(function(registration) {
        console.log(
          "ServiceWorker registration successful with scope:",
          registration.scope
        );
      })
      .catch(function(error) {
        console.log("ServiceWorker registration failed:", errror);
      });
  }

Can I remove @abehaskins ?

nicolasgarnier commented 7 years ago

Removed ;)