angular-cn/packages/service-worker/test
Hoel IRIS 81c2a94310 fix(service-worker): avoid uncaught rejection warning when registration fails (#30876)
Service worker API `navigator.serviceWorker.register` can fail in multiple ways.
For example, in Chrome, with an unstable network connection you can have the
following error: `An unknown error occurred when fetching the script.`

In the current state, it creates an `Uncaught (in promise) TypeError:` style of
error, which cannot be caught by the user on his own.

I think it's better to log the error over raising an error that cannot be
caught.

PR Close #30876
2019-06-07 08:46:25 -07:00
..
BUILD.bazel build: rules_nodejs 0.26.0 & use @npm instead of @ngdeps now that downstream angular build uses angular bundles (#28871) 2019-02-28 12:06:36 -08:00
async.ts feat(service-worker): introduce the @angular/service-worker package (#19274) 2017-09-28 16:18:12 -07:00
comm_spec.ts test(service-worker): expand `SwRegistrationOptions` tests and move to separate file (#21842) 2019-04-25 12:29:58 -07:00
integration_spec.ts test(service-worker): do not create testing artifacts on environments that do not support SW (#27080) 2019-03-21 12:07:56 -04:00
module_spec.ts fix(service-worker): avoid uncaught rejection warning when registration fails (#30876) 2019-06-07 08:46:25 -07:00