Skip to content

Commit e66a9ed

Browse files
amoristulivz
authored andcommitted
docs(cn): tweaks service worker (#406)
1 parent 5a230f9 commit e66a9ed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/zh/config/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,8 @@ module.exports = {
9393
- `sw-error`
9494

9595
::: tip PWA NOTES
96-
`serviceWorker` 仅仅用来控制 service worker,为了让你的网站完全地兼容 PWA,你需要在 `.vuepress/public` 提供 Manifest 和 icons,更多细节,请参见 [MDN docs about the Web App Manifest](https://developer.mozilla.org/en-US/docs/Web/Manifest).
97-
当然,仅仅只在你的网站部署后能用 SSL 的时候开启它,因为 service worker 只能在 HTTPs 的链接下注册
96+
`serviceWorker` 选项仅仅用来控制 service worker,为了让你的网站完全地兼容 PWA,你需要在 `.vuepress/public` 提供 Manifest 和 icons,更多细节,请参见 [MDN docs about the Web App Manifest](https://developer.mozilla.org/en-US/docs/Web/Manifest).
97+
此外,只有您能够使用 SSL 部署您的站点时才能启用此功能,因为 service worker 只能在 HTTPs 的 URL 下注册
9898
:::
9999

100100
### locales

0 commit comments

Comments
 (0)