Merge pull request 'Add PWA config' (#329) from pwa into develop
Reviewed-on: https://akkoma.dev/AkkomaGang/akkoma/pulls/329
This commit is contained in:
commit
94b469cab0
1 changed files with 12 additions and 2 deletions
|
@ -11,7 +11,17 @@ defmodule Pleroma.Web.ManifestView do
|
||||||
%{
|
%{
|
||||||
name: Config.get([:instance, :name]),
|
name: Config.get([:instance, :name]),
|
||||||
description: Config.get([:instance, :description]),
|
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]),
|
theme_color: Config.get([:manifest, :theme_color]),
|
||||||
background_color: Config.get([:manifest, :background_color]),
|
background_color: Config.get([:manifest, :background_color]),
|
||||||
display: "standalone",
|
display: "standalone",
|
||||||
|
@ -21,7 +31,7 @@ defmodule Pleroma.Web.ManifestView do
|
||||||
"social"
|
"social"
|
||||||
],
|
],
|
||||||
serviceworker: %{
|
serviceworker: %{
|
||||||
src: "/sw.js"
|
src: "/sw-pleroma.js"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue