mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2026-01-05 15:05:15 +08:00
added fallback to default font
This commit is contained in:
parent
ba0c571ed5
commit
75774c9fb6
1 changed files with 1 additions and 1 deletions
|
|
@ -1186,7 +1186,7 @@ export function setFontFamily(font, nosave) {
|
|||
config.fontFamily = font;
|
||||
document.documentElement.style.setProperty(
|
||||
"--font",
|
||||
'"' + font.replace(/_/g, " ") + '"'
|
||||
`"${font.replace(/_/g, " ")}", "Roboto Mono"`
|
||||
);
|
||||
ChartController.setDefaultFontFamily(font);
|
||||
if (!nosave) saveToLocalStorage();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue