diff --git a/public/assets/icons/masking-512x512.png b/public/assets/icons/masking-512x512.png new file mode 100644 index 00000000..85c49bba Binary files /dev/null and b/public/assets/icons/masking-512x512.png differ diff --git a/public/assets/icons/mono-48x48.png b/public/assets/icons/mono-48x48.png new file mode 100644 index 00000000..5d7c78c0 Binary files /dev/null and b/public/assets/icons/mono-48x48.png differ diff --git a/src/sw.ts b/src/sw.ts index b2df5a93..b22850ab 100644 --- a/src/sw.ts +++ b/src/sw.ts @@ -137,7 +137,7 @@ self.addEventListener("push", (event) => { : JSON.stringify(data.content), timestamp: decodeTime(data._id), tag: data.channel, - badge: "https://app.revolt.chat/assets/icons/android-chrome-512x512.png", + badge: "https://app.revolt.chat/assets/icons/mono-48x48.png", data: channel?.channel_type === "TextChannel" ? `/server/${channel.server}/channel/${channel._id}` diff --git a/vite.config.ts b/vite.config.ts index 6c627101..4622b766 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -38,7 +38,7 @@ function getVersion() { } const branch = getGitBranch(); -const isNightly = branch !== 'production'; +const isNightly = false;//branch !== 'production'; const iconPrefix = isNightly ? 'nightly-' : ''; export default defineConfig({ @@ -54,8 +54,8 @@ export default defineConfig({ description: isNightly ? "Early preview builds of Revolt." : "User-first, privacy-focused chat platform.", categories: ["messaging"], start_url: "/", + orientation: "any", display: "standalone", - orientation: "portrait", background_color: "#101823", icons: [ { @@ -67,6 +67,18 @@ export default defineConfig({ "src": `/assets/icons/${iconPrefix}android-chrome-512x512.png`, "type": "image/png", "sizes": "512x512" + }, + { + "src": `/assets/icons/mono-48x48.png`, + "type": "image/png", + "sizes": "48x48", + "purpose": "monochrome" + }, + { + "src": `/assets/icons/masking-512x512.png`, + "type": "image/png", + "sizes": "512x512", + "purpose": "maskable" } ] }