From 18098009809b6805682df233f941f59d0cd55ad9 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 0be07b2d8b..166e17b07a 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`)); /**