sunbeam
sunbeam copied to clipboard
Add share action
Each extension should be able to register a command as a share_target.
{
"title": "My Command",
"share_target": {
"command": "sunbeam",
"params": {
"url": "link"
}
}
"commands": [
{ "name": "command", "mode": "view", "title": "Save Link", "params": [{ "name": "link", "type": "string" }] }
]
}
Then from another extension can use a share action:
{
"title": "Share Link",
"onAction": {
"type": "share",
"url": "https://github.com"
}
}
causing all commands accepting a link to be proposed.
inspired by https://developer.mozilla.org/en-US/docs/Web/Manifest/share_target