mirror of
https://iceshrimp.dev/crimekillz/iceshrimp-161sh.git
synced 2024-11-23 04:33:50 +01:00
Send servicewroker script
This commit is contained in:
parent
ccac819eba
commit
319a2c0557
@ -66,9 +66,11 @@ router.get('/apple-touch-icon.png', async ctx => {
|
||||
});
|
||||
|
||||
// ServiceWroker
|
||||
//router.get(/^\/sw\.(.+?)\.js$/, async ctx => {
|
||||
// await send(ctx, `${client}/assets/sw.${ctx.params[0]}.js`);
|
||||
//});
|
||||
router.get(/^\/sw\.(.+?)\.js$/, async ctx => {
|
||||
await send(ctx, `/assets/sw.${ctx.params[0]}.js`, {
|
||||
root: client
|
||||
});
|
||||
});
|
||||
|
||||
// Manifest
|
||||
router.get('/manifest.json', async ctx => {
|
||||
|
Loading…
Reference in New Issue
Block a user