Add custom number formats

Fix Issues #201 #364 #407
Using plugin options (Issue #387)
This commit is contained in:
Yvon Cui committed 2022-01-18 09:43:46 -05:00
1 parent 510c083c77
commit a2bc4ca92e
6 files changed
+224 -5

No files matched your search

+16
View File
@@ -110,12 +110,28 @@ function storageChangeHandler(changes, area) {
changes.disableVoteSubmission.newValue
);
}
if (changes.numberDisplayRoundDown !== undefined) {
handleNumberDisplayRoundDownChangeEvent(
changes.numberDisplayRoundDown.newValue
);
}
if (changes.numberDisplayFormat !== undefined) {
handleNumberDisplayFormatChangeEvent(changes.numberDisplayFormat.newValue);
}
}
function handleDisableVoteSubmissionChangeEvent(value) {
extConfig.disableVoteSubmission = value;
}
function handleNumberDisplayFormatChangeEvent(value) {
extConfig.numberDisplayFormat = value;
}
function handleNumberDisplayRoundDownChangeEvent(value) {
extConfig.numberDisplayRoundDown = value;
}
export {
sendVote,
sendVideoIds,