mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
65f4fad801
Currently, the way to not use the SW is to not install its module. However, this means that you can't inject any of its services. This change adds a ServiceWorkerModule.disabled() MWP, that still registers all of the right providers but acts as if the browser does not support Service Workers.