forked from naskya/firefish
fix: add missing entry in manifest.json so that PWA can use it
This commit is contained in:
parent
4ebceb0c7e
commit
198bfe4d37
1 changed files with 1 additions and 0 deletions
|
@ -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, "")}`;
|
||||
|
|
Loading…
Reference in a new issue