mirror of
https://github.com/Alvin-Zilverstand/return-youtube-dislike.git
synced 2026-11-25 15:53:01 +01:00
Fixes after merges, prettier globally applied
This commit is contained in:
1 parent
58161ac123
commit
b0cb173830
47 files changed
+2183
-1942
No files matched your search
@@ -34,8 +34,10 @@ function getNumberFormatter(optionSelect) {
|
||||
?.getAttribute("href")
|
||||
)?.searchParams?.get("locale");
|
||||
} catch {
|
||||
cLog('Cannot find browser locale. Use en as default for number formatting.');
|
||||
userLocales = 'en';
|
||||
cLog(
|
||||
"Cannot find browser locale. Use en as default for number formatting."
|
||||
);
|
||||
userLocales = "en";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -56,13 +58,10 @@ function getNumberFormatter(optionSelect) {
|
||||
formatterCompactDisplay = "short";
|
||||
}
|
||||
|
||||
const formatter = Intl.NumberFormat(
|
||||
userLocales,
|
||||
{
|
||||
notation: formatterNotation,
|
||||
compactDisplay: formatterCompactDisplay,
|
||||
}
|
||||
);
|
||||
const formatter = Intl.NumberFormat(userLocales, {
|
||||
notation: formatterNotation,
|
||||
compactDisplay: formatterCompactDisplay,
|
||||
});
|
||||
return formatter;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user