mirror of
https://github.com/CompeyDev/fxtwitter-docker.git
synced 2025-04-10 04:50:53 +01:00
Not sure how this got moved
This commit is contained in:
parent
0749e2d9b7
commit
21185c5686
1 changed files with 12 additions and 12 deletions
|
@ -70,6 +70,7 @@ export const renderCard = async (
|
||||||
values.choice4_count.string_value
|
values.choice4_count.string_value
|
||||||
);
|
);
|
||||||
totalVotes += parseInt(values.choice4_count.string_value);
|
totalVotes += parseInt(values.choice4_count.string_value);
|
||||||
|
}
|
||||||
|
|
||||||
for (const [label, votes] of Object.entries(choices)) {
|
for (const [label, votes] of Object.entries(choices)) {
|
||||||
// render bar
|
// render bar
|
||||||
|
@ -82,7 +83,6 @@ export const renderCard = async (
|
||||||
str += `\n${totalVotes} votes · ${timeLeft}`;
|
str += `\n${totalVotes} votes · ${timeLeft}`;
|
||||||
|
|
||||||
console.log(str);
|
console.log(str);
|
||||||
}
|
|
||||||
/* Oh good, a non-Twitter video URL! This enables YouTube embeds and stuff to just work */
|
/* Oh good, a non-Twitter video URL! This enables YouTube embeds and stuff to just work */
|
||||||
} else if (typeof values.player_url !== 'undefined') {
|
} else if (typeof values.player_url !== 'undefined') {
|
||||||
headers.push(
|
headers.push(
|
||||||
|
|
Loading…
Add table
Reference in a new issue