From 2960cd73b2f2a33bcee36adb1ed21176d9098716 Mon Sep 17 00:00:00 2001 From: Aya Morisawa Date: Mon, 3 Sep 2018 18:58:26 +0900 Subject: [PATCH] Fix typo: Wroker -> Worker (#2597) --- docs/setup.en.md | 2 +- src/server/web/index.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/setup.en.md b/docs/setup.en.md index d42627187..23bcdcca9 100644 --- a/docs/setup.en.md +++ b/docs/setup.en.md @@ -54,7 +54,7 @@ Please visit https://www.google.com/recaptcha/intro/ and generate keys. *(optional)* Generating VAPID keys ---------------------------------------------------------------- -If you want to enable ServiceWroker, you need to generate VAPID keys: +If you want to enable ServiceWorker, you need to generate VAPID keys: Unless you have set your global node_modules location elsewhere, you need to run this in root. ``` shell diff --git a/src/server/web/index.ts b/src/server/web/index.ts index 452e36fe9..e7332f423 100644 --- a/src/server/web/index.ts +++ b/src/server/web/index.ts @@ -63,7 +63,7 @@ router.get('/apple-touch-icon.png', async ctx => { }); }); -// ServiceWroker +// ServiceWorker router.get(/^\/sw\.(.+?)\.js$/, async ctx => { await send(ctx, `/assets/sw.${ctx.params[0]}.js`, { root: client