From 3acc352cf01be3e5e0838041023d67604f8233ea Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Thu, 23 Feb 2023 21:52:25 -0500 Subject: [PATCH] Fix PWA manifest (#4922) --- server/static/index.html | 5 +++-- vite.config.ts | 8 ++++---- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/server/static/index.html b/server/static/index.html index 6d115c854..cf1d9b03e 100644 --- a/server/static/index.html +++ b/server/static/index.html @@ -8,6 +8,7 @@ + { manifest: { name: "Outline", short_name: "Outline", - // description: "My Awesome App description", theme_color: "#fff", background_color: "#fff", start_url: "/", + scope: "/", display: "standalone", // For Chrome, you must provide at least a 192x192 pixel icon, and a 512x512 pixel icon. // If only those two icon sizes are provided, Chrome will automatically scale the icons @@ -66,18 +66,18 @@ export default () => { // pixel-perfection, provide icons in increments of 48dp. icons: [ { - src: "images/icon-512.png", + src: "/static/images/icon-512.png", sizes: "192x192", type: "image/png", }, { - src: "images/icon-512.png", + src: "/static/images/icon-512.png", sizes: "512x512", type: "image/png", }, // last one duplicated for purpose: 'any maskable' { - src: "images/icon-512.png", + src: "/static/images/icon-512.png", sizes: "512x512", type: "image/png", purpose: "any maskable",