GOOGLE
[akkoma] / lib / pleroma / web / views / manifest_view.ex
index cc78ea3478eaf91b2fc6d3e57374a3b77cf420d0..c85d76d42545b2fce86a1682abf4b138de3c44f9 100644 (file)
@@ -11,7 +11,23 @@ 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",
+          purpose: "maskable"
+        },
+        %{
+          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 +37,7 @@ defmodule Pleroma.Web.ManifestView do
         "social"
       ],
       serviceworker: %{
-        src: "/sw.js"
+        src: "/sw-pleroma.js"
       }
     }
   end