Fixes after merges, prettier globally applied

This commit is contained in:
Anarios committed 2022-07-26 00:05:20 +02:00
1 parent 58161ac123
commit b0cb173830
47 files changed
+2183 -1942

No files matched your search

+8 -9
View File
@@ -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;
}