From d3734282326423a461563dbb5831a1cb80b48365 Mon Sep 17 00:00:00 2001 From: syuilo Date: Thu, 23 Nov 2017 03:37:13 +0900 Subject: [PATCH] :v: --- src/web/server.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/web/server.ts b/src/web/server.ts index 0be07b2d8..166e17b07 100644 --- a/src/web/server.ts +++ b/src/web/server.ts @@ -42,6 +42,9 @@ app.use('/assets', express.static(`${__dirname}/assets`, { maxAge: ms('7 days') })); +/** + * ServiceWroker + */ app.get(/^\/sw\.(.+?)\.js$/, (req, res) => res.sendFile(`${__dirname}/assets/sw.${req.params[0]}.js`)); /**