From 637ac00fd5fc502555fde0851fa7df96cf3274b6 Mon Sep 17 00:00:00 2001 From: Dale Harris Date: Thu, 24 Jun 2021 20:53:26 +0300 Subject: [PATCH] docs: Fix reference to SwUpdate.isEnabled boolean (#42634) SwUpdate has an `isEnabled` boolean rather than an `isEnabled()` method. Removed parentheses for accuracy. PR Close #42634 --- aio/content/guide/service-worker-intro.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aio/content/guide/service-worker-intro.md b/aio/content/guide/service-worker-intro.md index b3fe86ccba..b824fd0dda 100644 --- a/aio/content/guide/service-worker-intro.md +++ b/aio/content/guide/service-worker-intro.md @@ -55,7 +55,7 @@ More specifically: It is highly recommended that you ensure that your application works even without service worker support in the browser. Although an unsupported browser ignores service worker caching, it will still report errors if the application attempts to interact with the service worker. For example, calling `SwUpdate.checkForUpdate()` will return rejected promises. -To avoid such an error, you can check whether the Angular service worker is enabled using `SwUpdate.isEnabled()`. +To avoid such an error, you can check whether the Angular service worker is enabled using `SwUpdate.isEnabled`. To learn more about other browsers that are service worker ready, see the [Can I Use](https://caniuse.com/#feat=serviceworkers) page and [MDN docs](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API).