Skip to content

Commit

Permalink
update twtr url
Browse files Browse the repository at this point in the history
  • Loading branch information
mborejdo committed Mar 13, 2022
1 parent 9bbcf47 commit ddf2fdc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion data/twitter.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 14,7 @@
$(document).ready(() => {
let searchParams = new URLSearchParams(window.location.search);
$.getJSON(`https://api.twitter.com/1/statuses/oembed.json?id=${searchParams.get("id")}&theme=dark&callback=?`, (data) =>{
//$.getJSON(`https://publish.twitter.com/oembed.json?url=https://twitter.com/${searchParams.get("id")}&width=500&limit=1&theme=dark&callback=?`, (data) =>{
// $.getJSON(`https://publish.twitter.com/oembed.json?url=https://twitter.com/${searchParams.get("id")}&width=500&limit=1&theme=dark&callback=?`, (data) =>{
$('#tweet').html(data.html);
});
});
Expand Down

0 comments on commit ddf2fdc

Please sign in to comment.