Skip to content

Commit

Permalink
Remove tweet sharing (who even still uses Twitter?)
Browse files Browse the repository at this point in the history
  • Loading branch information
doersino committed Mar 23, 2024
1 parent 02767da commit e48630e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
1 change: 0 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -624,7 +624,6 @@
<button class="caring-button copy" onclick="copyShareLink()">Copy</button>
<button class="caring-button" onclick="openShareLink()">Open</button>
<button class="caring-button" onclick="shareShareLink()">Share…</button>
<button class="caring-button" onclick="tweetShareLink()">Tweet…</button>
<p class="share-status"></p>
</div>
</aside>
Expand Down
9 changes: 0 additions & 9 deletions script.js
Original file line number Diff line number Diff line change
Expand Up @@ -979,15 +979,6 @@ async function shareShareLink() {
}
}
}
function tweetShareLink() {
const url = document.querySelector(".caring").value;
const text = "I've created some generative art, take a look!"

let link = document.createElement("a");
link.href = `https://twitter.com/intent/tweet?text=${encodeURIComponent(text)}&url=${encodeURIComponent(url)}`;
link.target = "_blank";
link.click();
}
function refreshShareSheetUrl() {
const shareUrl = generateShareURL(optionValues);
document.querySelector(".caring").value = shareUrl;
Expand Down

0 comments on commit e48630e

Please sign in to comment.