From e7e21b6f65a796d4a02692633842024510602dde Mon Sep 17 00:00:00 2001 From: Christopher Serr Date: Sun, 9 Jun 2024 17:18:37 +0200 Subject: [PATCH] Make the PWA Icon maskable Even though we added the margin, some Android devices still need it to be maskable to properly understand the margin. --- src/assets/maskable.svg | 1 + webpack.config.js | 5 +---- 2 files changed, 2 insertions(+), 4 deletions(-) create mode 100644 src/assets/maskable.svg diff --git a/src/assets/maskable.svg b/src/assets/maskable.svg new file mode 100644 index 000000000..340ee4a5e --- /dev/null +++ b/src/assets/maskable.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/webpack.config.js b/webpack.config.js index ea0ba08aa..1c0db5147 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -111,6 +111,7 @@ export default async (env, argv) => { new FaviconsWebpackPlugin({ logo: path.resolve("src/assets/icon.svg"), inject: true, + logoMaskable: path.resolve("src/assets/maskable.svg"), favicons: { appName: "LiveSplit One", appDescription: "A version of LiveSplit that works on a lot of platforms.", @@ -126,10 +127,6 @@ export default async (env, argv) => { appleStartup: { offset: 15, }, - android: { - background: true, - offset: 10, - }, windows: false, coast: false, yandex: false,