temp fix for the font size bug

This commit is contained in:
Miodec 2022-10-13 20:12:07 +02:00
parent 0ccf45bece
commit ef923f3de2

View file

@ -1554,6 +1554,15 @@ export function setFontSize(fontSize: number, nosave?: boolean): boolean {
fontSize = 1;
}
// i dont know why the above check is not enough
// some people are getting font size 15 when it should be converted to 1.5
// after converting from the string to float system
// keeping this in for now, if you want a big font go 14.9 or something
if (fontSize == 15) {
fontSize = 1.5;
}
config.fontSize = fontSize;
$("#words, #caret, #paceCaret, #miniTimerAndLiveWpm").css(