fix: add missing entry in manifest.json so that PWA can use it
This commit is contained in:
parent
09053f5748
commit
8ef1130330
@ -11,6 +11,7 @@ export const manifestHandler = async (ctx: Koa.Context) => {
|
|||||||
const instance = await fetchMeta(true);
|
const instance = await fetchMeta(true);
|
||||||
|
|
||||||
res.short_name = instance.name || "Firefish";
|
res.short_name = instance.name || "Firefish";
|
||||||
|
res.name = instance.name || "Firefish";
|
||||||
if (instance.themeColor) res.theme_color = instance.themeColor;
|
if (instance.themeColor) res.theme_color = instance.themeColor;
|
||||||
for (const icon of res.icons) {
|
for (const icon of res.icons) {
|
||||||
icon.src = `${icon.src}?v=${config.version.replace(/[^0-9]/g, "")}`;
|
icon.src = `${icon.src}?v=${config.version.replace(/[^0-9]/g, "")}`;
|
||||||
|
Loading…
Reference in New Issue
Block a user