Skip to content

Commit

Permalink
oops
Browse files Browse the repository at this point in the history
  • Loading branch information
dimdenGD committed Jul 22, 2022
1 parent 260dd19 commit d0de72e
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions layouts/home/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,11 +127,6 @@ async function updateTimeline() {

if(vars.linkColorsInTL) {
let tlUsers = tl.map(t => t.user.screen_name).filter(u => !linkColors[u]);
try {
await fetch(`https://dimden.dev/services/twitter_link_colors/get_multiple/${tlUsers.join(',')}`)
} catch(e) {
console.error(e);
}
let linkData = await fetch(`https://dimden.dev/services/twitter_link_colors/get_multiple/${tlUsers.join(',')}`).then(res => res.json()).catch(console.error);
if(linkData) for(let i in linkData) {
linkColors[linkData[i].username] = linkData[i].color;
Expand Down

0 comments on commit d0de72e

Please sign in to comment.