1
0
Fork 1
mirror of https://example.com synced 2024-11-22 12:56:39 +09:00

fix: add missing entry in manifest.json so that PWA can use it

This commit is contained in:
nakkaa 2023-11-11 09:18:41 +09:00 committed by naskya
parent 4ebceb0c7e
commit 198bfe4d37
Signed by: naskya
GPG key ID: 164DFF24E2D40139

View file

@ -11,6 +11,7 @@ export const manifestHandler = async (ctx: Koa.Context) => {
const instance = await fetchMeta(true);
res.short_name = instance.name || "Firefish";
res.name = instance.name || "Firefish";
if (instance.themeColor) res.theme_color = instance.themeColor;
for (const icon of res.icons) {
icon.src = `${icon.src}?v=${config.version.replace(/[^0-9]/g, "")}`;