Add shortcuts and share_target to manifest.json
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
parent
64efa18c38
commit
f5fe5b4544
4 changed files with 42 additions and 1 deletions
|
@ -22,7 +22,48 @@ def render("manifest.json", _params) do
|
|||
],
|
||||
serviceworker: %{
|
||||
src: "/sw.js"
|
||||
}
|
||||
},
|
||||
share_target: %{
|
||||
action: "share",
|
||||
method: "GET",
|
||||
params: %{
|
||||
title: "title",
|
||||
text: "text",
|
||||
url: "url"
|
||||
}
|
||||
},
|
||||
shortcuts: [
|
||||
%{
|
||||
name: "Search",
|
||||
url: "/search",
|
||||
icons: [
|
||||
%{
|
||||
src: "/images/shortcuts/search.png",
|
||||
sizes: "192x192"
|
||||
}
|
||||
]
|
||||
},
|
||||
%{
|
||||
name: "Notifications",
|
||||
url: "/notifications",
|
||||
icons: [
|
||||
%{
|
||||
src: "/images/shortcuts/notifications.png",
|
||||
sizes: "192x192"
|
||||
}
|
||||
]
|
||||
},
|
||||
%{
|
||||
name: "Chats",
|
||||
url: "/chats",
|
||||
icons: [
|
||||
%{
|
||||
src: "/images/shortcuts/chats.png",
|
||||
sizes: "192x192"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
end
|
||||
end
|
||||
|
|
BIN
priv/static/images/shortcuts/chats.png
Normal file
BIN
priv/static/images/shortcuts/chats.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.4 KiB |
BIN
priv/static/images/shortcuts/notifications.png
Normal file
BIN
priv/static/images/shortcuts/notifications.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.5 KiB |
BIN
priv/static/images/shortcuts/search.png
Normal file
BIN
priv/static/images/shortcuts/search.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.8 KiB |
Loading…
Reference in a new issue