Add PWA config #329

Merged
floatingghost merged 2 commits from pwa into develop 2022-12-02 11:13:29 +00:00

View file

@ -11,7 +11,17 @@ def render("manifest.json", _params) 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 @@ def render("manifest.json", _params) do
"social"
],
serviceworker: %{
src: "/sw.js"
src: "/sw-pleroma.js"
}
}
end