mirror of
https://github.com/Alvin-Zilverstand/return-youtube-dislike.git
synced 2026-11-23 14:53:01 +01:00
added document.documentElement.lang
This commit is contained in:
1 parent
4ba6ef9f9e
commit
7ac7bf9b0d
3 files changed
+3
-3
No files matched your search
@@ -308,7 +308,7 @@ function numberFormat(numberState) {
|
||||
)?.searchParams?.get("locale");
|
||||
|
||||
const formatter = Intl.NumberFormat(
|
||||
userLocales || document.documentElement.lang,
|
||||
document.documentElement.lang || userLocales,
|
||||
{
|
||||
notation: "compact",
|
||||
minimumFractionDigits: 1,
|
||||
|
||||
@@ -185,7 +185,7 @@ const NEUTRAL_STATE = "NEUTRAL_STATE";
|
||||
?.getAttribute("href")
|
||||
)?.searchParams?.get("locale");
|
||||
|
||||
const formatter = Intl.NumberFormat(userLocales || navigator.language, {
|
||||
const formatter = Intl.NumberFormat(document.documentElement.lang || userLocales || navigator.language, {
|
||||
notation: "compact",
|
||||
});
|
||||
|
||||
|
||||
@@ -179,7 +179,7 @@ function numberFormat(numberState) {
|
||||
?.find((n) => n?.getAttribute("href")?.includes("?locale="))
|
||||
?.getAttribute("href")
|
||||
)?.searchParams?.get("locale");
|
||||
const formatter = Intl.NumberFormat(userLocales || navigator.language, {
|
||||
const formatter = Intl.NumberFormat(document.documentElement.lang || userLocales || navigator.language, {
|
||||
notation: "compact",
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user