We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8aead03 commit 6f1f6ccCopy full SHA for 6f1f6cc
twitchio/ext/overlays/static/scripts.js
@@ -35,9 +35,9 @@ async function prepareData(data) {
35
36
for (const part of data.parts) {
37
const content = part.content;
38
- const anim = part.animation;
39
- const speed = part.speed;
40
- const fontSize = part.size;
+ const anim = part.animation || "";
+ const speed = part.speed || "";
+ const fontSize = part.size || 22;
41
42
let html = `<span style="font-size: ${fontSize}px;" class="animate__animated animate__infinite${anim}${speed}">${content}</span>`;
43
element.insertAdjacentHTML("beforeend", html);
0 commit comments