fix: client share intents
This commit is contained in:
parent
5bfbd4e110
commit
904944f5d3
1 changed files with 4 additions and 4 deletions
|
@ -587,17 +587,17 @@
|
|||
},
|
||||
);
|
||||
|
||||
self.define("intent_twitter", (_, text) => {
|
||||
self.define("intent_twitter", async (_, text_promise) => {
|
||||
window.open(
|
||||
`https://twitter.com/intent/tweet?text=${encodeURIComponent(text)}`,
|
||||
`https://twitter.com/intent/tweet?text=${encodeURIComponent(await text_promise)}`,
|
||||
);
|
||||
|
||||
trigger("atto::toast", ["success", "Opened intent!"]);
|
||||
});
|
||||
|
||||
self.define("intent_bluesky", (_, text) => {
|
||||
self.define("intent_bluesky", async (_, text_promise) => {
|
||||
window.open(
|
||||
`https://bsky.app/intent/compose?text=${encodeURIComponent(text)}`,
|
||||
`https://bsky.app/intent/compose?text=${encodeURIComponent(await text_promise)}`,
|
||||
);
|
||||
|
||||
trigger("atto::toast", ["success", "Opened intent!"]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue