fix: add sizes to maskable so it doesnt crash chrome application tab

This commit is contained in:
Barış Soner Uşaklı
2024-06-27 16:59:49 -04:00
parent a28dd70fcb
commit ccc8682526

View File

@@ -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',
});