Update index.ts

This commit is contained in:
Acid Chicken (硫酸鶏) 2018-11-14 09:30:37 +09:00 committed by GitHub
parent e509b1f488
commit e0b1d4239f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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
});