mirror of
https://github.com/Alvin-Zilverstand/return-youtube-dislike.git
synced 2026-11-21 13:53:01 +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();
|
||||
if (nativeLikes !== false) {
|
||||
setLikes(numberFormat(nativeLikes));
|
||||
} else {
|
||||
setLikes(numberFormat(storedData.likes));
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -78,8 +76,6 @@ function dislikeClicked() {
|
||||
const nativeLikes = getLikeCountFromButton();
|
||||
if (nativeLikes !== false) {
|
||||
setLikes(numberFormat(nativeLikes));
|
||||
} else {
|
||||
setLikes(numberFormat(storedData.likes));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user