From 7e2cf4238f911e8630e93699912c0d4e45a8bcad Mon Sep 17 00:00:00 2001 From: Mar0xy Date: Tue, 28 Nov 2023 03:48:22 +0100 Subject: [PATCH] upd: apply 300x300 PWA icon Closes transfem-org/Sharkey#165 --- packages/backend/src/server/web/ClientServerService.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/backend/src/server/web/ClientServerService.ts b/packages/backend/src/server/web/ClientServerService.ts index eafcfdf8dd..ea7bfd70b8 100644 --- a/packages/backend/src/server/web/ClientServerService.ts +++ b/packages/backend/src/server/web/ClientServerService.ts @@ -139,7 +139,9 @@ export class ClientServerService { 'type': 'image/png', 'purpose': 'maskable', }, { - 'src': '/static-assets/splash.png', + // 空文字列の場合右辺を使いたいため + // eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing + 'src': instance.app512IconUrl || '/static-assets/icons/512.png', 'sizes': '300x300', 'type': 'image/png', 'purpose': 'any',