ui: fix cachable host generation

This commit is contained in:
undefined committed 2022-10-20 11:03:25 +08:00
1 parent fc7e57cb8c
commit 7cee2eae4e
2 files changed
+3 -2

No files matched your search

+2 -1
View File
@@ -166,7 +166,8 @@ class SWConfigHandler extends ResourceHandler {
this.response.body = {
preload: SystemModel.get('ui-default.preload'),
hosts: [
`${this.request.method}://${this.request.host}`,
`http://${this.request.host}`,
`https://${this.request.host}`,
SystemModel.get('server.url'),
SystemModel.get('server.cdn'),
],
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@hydrooj/ui-default",
"version": "4.42.0",
"version": "4.42.1",
"author": "undefined <i@undefined.moe>",
"license": "AGPL-3.0",
"main": "index.ts",