Add user option to re-format likes

fixes #543
This feature does not force-display likes when uploader has disabled like number display. Consult with other issues.
This commit is contained in:
Yvon Cui committed 2022-04-19 00:57:28 -05:00
1 parent a99410ae13
commit 09b29d7cab
5 files changed
+70

No files matched your search

+7
View File
@@ -130,6 +130,9 @@ function storageChangeHandler(changes, area) {
if (changes.numberDisplayFormat !== undefined) {
handleNumberDisplayFormatChangeEvent(changes.numberDisplayFormat.newValue);
}
if (changes.numberDisplayReformatLikes !== undefined) {
handleNumberDisplayReformatLikesChangeEvent(changes.numberDisplayReformatLikes.newValue);
}
}
function handleDisableVoteSubmissionChangeEvent(value) {
@@ -157,6 +160,10 @@ function handleNumberDisplayRoundDownChangeEvent(value) {
extConfig.numberDisplayRoundDown = value;
}
function handleNumberDisplayReformatLikesChangeEvent(value) {
extConfig.numberDisplayReformatLikes = value;
}
export {
sendVote,
sendVideoIds,