Add shortcuts and share_target to manifest.json

Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
marcin mikołajczak 2022-09-24 18:34:09 +02:00
parent 64efa18c38
commit f5fe5b4544
4 changed files with 42 additions and 1 deletions

View file

@ -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

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB