mirror of
https://github.com/Alvin-Zilverstand/return-youtube-dislike.git
synced 2026-12-02 02:41:22 +01:00
Merge pull request #213 from rakleed/patch-1
Extract language from `html` instead of browser UI
This commit is contained in:
1 file changed
+1
-1
@@ -289,7 +289,7 @@ function roundDown(num) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function numberFormat(numberState) {
|
function numberFormat(numberState) {
|
||||||
const userLocales = navigator.language;
|
const userLocales = document.documentElement.lang;
|
||||||
|
|
||||||
const formatter = Intl.NumberFormat(userLocales, {
|
const formatter = Intl.NumberFormat(userLocales, {
|
||||||
notation: "compact",
|
notation: "compact",
|
||||||
|
|||||||
Reference in new issue
Block a user