Skip to content

Commit

Permalink
WIP test invalid commit
Browse files Browse the repository at this point in the history
  • Loading branch information
kytta committed Jan 28, 2025
1 parent d283a13 commit fa17d18
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/shareon.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const urlBuilderMap = {
fediverse: (d) => `https://${d.s2fInstance}/?text=${d.title}%0D%0A${d.url}${d.text ? `%0D%0A%0D%0A${d.text}` : ''}${d.via ? `%0D%0A%0D%0A${d.via}` : ''}`,
hackernews: (d) => `https://news.ycombinator.com/submitlink?u=${d.url}&t=${d.title}`,
linkedin: (d) => `https://www.linkedin.com/sharing/share-offsite/?url=${d.url}`,
lobsters: (d) => `https://lobste.rs/stories/new?url=${d.url}&title=${d.title}`,
lobsters: d => `https://lobste.rs/stories/new?url=${d.url}&title=${d.title}`,
mastodon: (d) => `https://toot.kytta.dev/?text=${d.title}%0D%0A${d.url}${d.text ? `%0D%0A%0D%0A${d.text}` : ''}${d.via ? `%0D%0A%0D%0A${d.via}` : ''}`,
messenger: (d) => `https://www.facebook.com/dialog/send?app_id=${d.fbAppId}&link=${d.url}&redirect_uri=${d.url}`,
odnoklassniki: (d) => `https://connect.ok.ru/offer?url=${d.url}&title=${d.title}${d.media ? `&imageUrl=${d.media}` : ''}`,
Expand All @@ -41,7 +41,7 @@ const urlBuilderMap = {
};

const openUrl = (buttonUrl) => () => {
window.open(buttonUrl, "_blank", "noopener,noreferrer");
window.open(buttonUrl, "_blank", "noopener,noreferrer");
};

const init = () => {
Expand Down

0 comments on commit fa17d18

Please sign in to comment.