From 5cab56cc9296bb6a57d762d7214c9a9eaf70ec50 Mon Sep 17 00:00:00 2001 From: "qingwei.li" Date: Tue, 21 Feb 2017 23:00:22 +0800 Subject: [PATCH] docs(pwa): fix typo --- docs/pwa.md | 2 +- docs/zh-cn/pwa.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/pwa.md b/docs/pwa.md index 5939341..98ff630 100644 --- a/docs/pwa.md +++ b/docs/pwa.md @@ -3,7 +3,7 @@ [Progressive Web Apps](https://developers.google.com/web/progressive-web-apps/)(PWA) are experiences that combine the best of the web and the best of apps. we can enhance our website with service workers to work **offline** or on low-quality networks. It is also very easy to use it. -## Create serverWorker +## Create serviceWorker Create a sw.js file in your documents root directory and copy this code. *sw.js* diff --git a/docs/zh-cn/pwa.md b/docs/zh-cn/pwa.md index cd7151d..7eb7ac6 100644 --- a/docs/zh-cn/pwa.md +++ b/docs/zh-cn/pwa.md @@ -3,7 +3,7 @@ [Progressive Web Apps](https://developers.google.com/web/progressive-web-apps/)(PWA) 是一项融合 Web 和 Native 应用各项优点的解决方案。我们可以利用其支持离线功能的特点,让我们的网站可以在信号差或者离线状态下正常运行。 要使用它也非常容易。 -## 创建 serverWorker +## 创建 serviceWorker 这里已经整理好了一份代码,你只需要在网站根目录下创建一个 `sw.js` 文件,并张贴下面的代码。 *sw.js*