Add PWA info
authorFloatingGhost <hannah@coffee-and-dreams.uk>
Mon, 28 Nov 2022 22:44:20 +0000 (22:44 +0000)
committerFloatingGhost <hannah@coffee-and-dreams.uk>
Fri, 2 Dec 2022 11:10:35 +0000 (11:10 +0000)
config/config.exs
lib/pleroma/web/views/manifest_view.ex

index 8e01044004f5eba93d330c32fe74bb53f3f07cf9..90dcc057f326928dd1f0cb0d8c30639f0a4a79e6 100644 (file)
@@ -313,7 +313,7 @@ config :pleroma, :frontend_configurations,
     loginMethod: "password",
     logo: "/static/logo.svg",
     logoMargin: ".1em",
-    logoMask: true,
+    logoMask: false,
     noAttachmentLinks: false,
     nsfwCensorImage: "",
     postContentType: "text/plain",
@@ -346,12 +346,6 @@ config :pleroma, :assets,
   default_mascot: :pleroma_fox_tan
 
 config :pleroma, :manifest,
-  icons: [
-    %{
-      src: "/static/logo.svg",
-      type: "image/svg+xml"
-    }
-  ],
   theme_color: "#282c37",
   background_color: "#191b22"
 
index cc78ea3478eaf91b2fc6d3e57374a3b77cf420d0..1d78b594eeb3ac89ae7ee1c976c681027861ff61 100644 (file)
@@ -11,7 +11,17 @@ defmodule Pleroma.Web.ManifestView do
     %{
       name: Config.get([:instance, :name]),
       description: Config.get([:instance, :description]),
-      icons: Config.get([:manifest, :icons]),
+      icons: [
+        %{
+            src: "/static/logo.svg",
+            type: "image/svg+xml"
+        },
+        %{
+            src: "/static/logo-512.png",
+            sizes: "512x512",
+            type: "image/png"
+        }
+      ],
       theme_color: Config.get([:manifest, :theme_color]),
       background_color: Config.get([:manifest, :background_color]),
       display: "standalone",
@@ -21,7 +31,7 @@ defmodule Pleroma.Web.ManifestView do
         "social"
       ],
       serviceworker: %{
-        src: "/sw.js"
+        src: "/sw-pleroma.js"
       }
     }
   end