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

This commit is contained in:
nakkaa 2023-11-11 02:20:33 +09:00 committed by naskya
parent 09053f5748
commit 8ef1130330
No known key found for this signature in database
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, "")}`;