소스 검색

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 {