mirror of
https://github.com/Alvin-Zilverstand/return-youtube-dislike.git
synced 2026-11-28 17:07:55 +01:00
don't use storedData.likes
Since official like count is still available, avoid using API server response.
This commit is contained in:
1 parent
260798d1a8
commit
41dd4e656e
1 file changed
-4
@@ -46,8 +46,6 @@ function likeClicked() {
|
|||||||
const nativeLikes = getLikeCountFromButton();
|
const nativeLikes = getLikeCountFromButton();
|
||||||
if (nativeLikes !== false) {
|
if (nativeLikes !== false) {
|
||||||
setLikes(numberFormat(nativeLikes));
|
setLikes(numberFormat(nativeLikes));
|
||||||
} else {
|
|
||||||
setLikes(numberFormat(storedData.likes));
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -78,8 +76,6 @@ function dislikeClicked() {
|
|||||||
const nativeLikes = getLikeCountFromButton();
|
const nativeLikes = getLikeCountFromButton();
|
||||||
if (nativeLikes !== false) {
|
if (nativeLikes !== false) {
|
||||||
setLikes(numberFormat(nativeLikes));
|
setLikes(numberFormat(nativeLikes));
|
||||||
} else {
|
|
||||||
setLikes(numberFormat(storedData.likes));
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user