mirror of
https://github.com/Alvin-Zilverstand/return-youtube-dislike.git
synced 2026-12-02 02:41:22 +01:00
Merge pull request #212 from surrealegg/fix-dislike-incremental-count
Fix dislike count increasing in Firefox.
This commit is contained in:
1 file changed
+7
-1
@@ -120,7 +120,13 @@ function setState() {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
function likeClicked() {}
|
function likeClicked() {
|
||||||
|
if (storedData.previousState === 'disliked') {
|
||||||
|
storedData.dislikes--;
|
||||||
|
setDislikes(numberFormat(storedData.dislikes));
|
||||||
|
storedData.previousState = 'liked';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
function dislikeClicked() {
|
function dislikeClicked() {
|
||||||
let state = getState().current;
|
let state = getState().current;
|
||||||
|
|||||||
Reference in new issue
Block a user