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
This commit is contained in:
Dale Harris 2021-06-24 20:53:26 +03:00 committed by Jessica Janiuk
parent c88e18a051
commit 637ac00fd5
1 changed files with 1 additions and 1 deletions

View File

@ -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).