bug fix: colors were swapped for certain videos

Rewind 2018 has "if (!rateBar)" to be false in createRateBar()
This commit is contained in:
Yvon Cui committed 2022-01-19 00:58:54 -05:00
1 parent ec6f624a29
commit b4bf27bbde
1 file changed
+2 -2
+2 -2
View File
@@ -55,8 +55,8 @@ function createRateBar(likes, dislikes) {
"#ryd-dislike-tooltip > #tooltip"
).innerHTML = `${likes.toLocaleString()} / ${dislikes.toLocaleString()}`;
if (extConfig.coloredBar) {
document.getElementById("ryd-bar-container").style.backgroundColor = getColorFromTheme(true);
document.getElementById("ryd-bar").style.backgroundColor = getColorFromTheme(false);
document.getElementById("ryd-bar-container").style.backgroundColor = getColorFromTheme(false);
document.getElementById("ryd-bar").style.backgroundColor = getColorFromTheme(true);
}
}
} else {