diff --git a/js/twitch/module.js b/js/twitch/module.js index 0810f3a..0f2c05b 100644 --- a/js/twitch/module.js +++ b/js/twitch/module.js @@ -518,7 +518,7 @@ async function twitchUpdateStatistics(data) { if (showPlatformStatistics == false || showTwitchViewers == false) return; - const viewers = DOMPurify.sanitize(data.viewers); + const viewers = DOMPurify.sanitize(data.viewerCount); document.querySelector('#statistics #twitch .viewers span').textContent = formatNumber(viewers); } @@ -579,4 +579,4 @@ async function getTwitchAvatar(user) { return newavatar; } } -} \ No newline at end of file +}