Skip to content

Commit

Permalink
Merge pull request #24 from boerniee/master
Browse files Browse the repository at this point in the history
Former-commit-id: e6e8a49
  • Loading branch information
waschinski committed May 8, 2022
2 parents 3bc3cfa + 5c78c37 commit b16c2c4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions _includes/javascript.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@
const shareImage = (title, url) => {
if (navigator.canShare) {
const shareData = {
title: '{{ site.env.TITLE }}',
text: `I found a cool photo over at ${title}! Check it out!`,
title: title,
text: 'I found a cool photo over at {{ site.env.TITLE }}! Check it out!',
url: url
}
navigator.share(shareData)
} else {
navigator.clipboard.writeText(`I found a cool photo over at ${title}! Check it out!\n\n${window.location.origin}${url}`);
navigator.clipboard.writeText(`I found a cool photo over at {{ site.env.TITLE }}! Check it out!\n\n${window.location.origin}${url}`);
Toastify({
text: "Copied to clipboard",
duration: 3000,
Expand Down

0 comments on commit b16c2c4

Please sign in to comment.