diff options
author | sy-b <94835959+sy-b@users.noreply.github.com> | 2022-06-29 05:18:32 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-29 05:18:32 +0300 |
commit | bb3fdc62c2bbcaf0eb31209c0686b314b83ae191 (patch) | |
tree | 080b8660c40b2df155fb22ce08f5e113f5933b7e /Extensions | |
parent | 3fd5dd58b6ce5e02486c7fdc013444247b0b5702 (diff) |
import starRating in state.js
Signed-off-by: sy-b <94835959+sy-b@users.noreply.github.com>
Diffstat (limited to 'Extensions')
-rw-r--r-- | Extensions/combined/src/state.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Extensions/combined/src/state.js b/Extensions/combined/src/state.js index df9d561..7160903 100644 --- a/Extensions/combined/src/state.js +++ b/Extensions/combined/src/state.js @@ -8,6 +8,7 @@ import { getColorFromTheme, } from "./utils"; import { localize } from "./utils"; +import { createStarRating } from "./starRating"; //TODO: Do not duplicate here and in ryd.background.js const apiUrl = "https://returnyoutubedislikeapi.com"; @@ -199,6 +200,7 @@ function processResponse(response, storedData) { getDislikeButton().style.color = getColorFromTheme(false); } } + createStarRating(response.rating, isMobile()); } // Tells the user if the API is down |