From e0b1d4239f16b65512f5dbdd93c8765f708b5282 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Acid=20Chicken=20=28=E7=A1=AB=E9=85=B8=E9=B6=8F=29?= Date: Wed, 14 Nov 2018 09:30:37 +0900 Subject: [PATCH] Update index.ts --- src/server/web/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/web/index.ts b/src/server/web/index.ts index 42203471a7..c67bdb1ab8 100644 --- a/src/server/web/index.ts +++ b/src/server/web/index.ts @@ -62,7 +62,7 @@ router.get('/apple-touch-icon.png', async ctx => { }); // ServiceWorker -router.get(/^\/sw\.(.+?)\.js$/, async ctx => { +router.get(/^\/sw\.(.+?)(\.(de-DE|en-US|fr-FR|ja-(JP|KS)|pl-PL|es-ES|nl-NL))?\.js$/, async ctx => { await send(ctx, `/assets/sw.${ctx.params[0]}.js`, { root: client });