浏览代码

bug fix: colors were swapped for certain videos

Rewind 2018 has "if (!rateBar)" to be false in createRateBar()
Yvon Cui 3 年之前
父节点
当前提交
b4bf27bbde
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      Extensions/combined/src/bar.js

+ 2 - 2
Extensions/combined/src/bar.js

@@ -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 {