mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-23 14:23:39 +08:00
temp fix for the font size bug
This commit is contained in:
parent
0ccf45bece
commit
ef923f3de2
1 changed files with 9 additions and 0 deletions
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue