Skip to content

Commit

Permalink
Update the link to share a tweet
Browse files Browse the repository at this point in the history
  • Loading branch information
h-takeyeah committed Apr 16, 2023
1 parent 000c760 commit 0a4a5e1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions step3/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ function omikuji() {

function shareTwitter() {
const result = document.getElementById("result").innerHTML;
url =
"http://twitter.com/share?text=結果は「" +
const url =
"https://twitter.com/intent/tweet?hashtags=SZPPおみくじ&text=結果は「" +
result +
"」でした。%23SZPPおみくじ";
"」でした。";
window.open(url, "_blank", "width=600,height=300");
}

0 comments on commit 0a4a5e1

Please sign in to comment.