Skip to content

Commit 58261c1

Browse files
davestaabulivz
authored andcommitted
chore: improve service worker section (#766)
Minor improvements to the service workers section of the theme docs
1 parent 01d4135 commit 58261c1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/default-theme-config/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -358,15 +358,15 @@ Note that it's `off` by default. If given a `string`, it will be displayed as a
358358

359359
## Service Worker
360360

361-
The `themeConfig.serviceWorker` option allows you to configure about service worker.
361+
The `themeConfig.serviceWorker` option allows you to configure the service worker.
362362

363363
::: tip
364364
Please do not confuse this option with [Config > serviceWorker](../config/README.md#serviceworker), [Config > serviceWorker](../config/README.md#serviceworker) is **site-level**, while this option is **theme-level**.
365365
:::
366366

367367
### Popup UI to refresh contents <Badge text="0.13.0+"/> <Badge text="beta" type="warn"/>
368368

369-
The `themeConfig.serviceWorker.updatePopup` option enables the popup to refresh contents. The popup will be shown when the site is updated (i.e. service worker is updated). It provides `refresh` button to allow users to refresh contents immediately.
369+
The `themeConfig.serviceWorker.updatePopup` option enables a popup to refresh site content. The popup will be shown when the site is updated (i.e. service worker is updated). It provides a `refresh` button to allow users to refresh contents immediately.
370370

371371
::: tip NOTE
372372
If without the `refresh` button, the new service worker will be active after all [clients](https://developer.mozilla.org/en-US/docs/Web/API/Clients) are closed. This means that visitors cannot see new contents until they close all tabs of your site. But the `refresh` button activates the new service worker immediately.

0 commit comments

Comments
 (0)