From ccc8682526dc796726f6b6fcb228b6c09fa3192f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Thu, 27 Jun 2024 16:59:49 -0400 Subject: [PATCH] fix: add sizes to maskable so it doesnt crash chrome application tab --- src/controllers/index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/controllers/index.js b/src/controllers/index.js index 253df71a67..2cf50a7785 100644 --- a/src/controllers/index.js +++ b/src/controllers/index.js @@ -308,12 +308,14 @@ Controllers.manifest = async function (req, res) { if (meta.config['brand:maskableIcon']) { manifest.icons.push({ src: `${nconf.get('relative_path')}/assets/uploads/system/maskableicon-orig.png`, + sizes: '512x512', type: 'image/png', purpose: 'maskable', }); } else if (meta.config['brand:touchIcon']) { manifest.icons.push({ src: `${nconf.get('relative_path')}/assets/uploads/system/touchicon-orig.png`, + sizes: '512x512', type: 'image/png', purpose: 'maskable', });