mirror of
https://github.com/Alvin-Zilverstand/return-youtube-dislike.git
synced 2026-12-03 11:21:20 +01:00
Extract language from html instead of browser UI
This commit is contained in:
1 parent
8eed2febfe
commit
4b04d161ec
1 file changed
+1
-1
@@ -289,7 +289,7 @@ function roundDown(num) {
|
||||
}
|
||||
|
||||
function numberFormat(numberState) {
|
||||
const userLocales = navigator.language;
|
||||
const userLocales = document.documentElement.lang;
|
||||
|
||||
const formatter = Intl.NumberFormat(userLocales, {
|
||||
notation: "compact",
|
||||
|
||||
Reference in new issue
Block a user