mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-05 21:33:40 +08:00
fixed lag because of the theme applying
This commit is contained in:
parent
080106c1df
commit
9bb2211ea7
2 changed files with 2 additions and 1 deletions
|
@ -1910,6 +1910,7 @@ $("#commandLineWrapper").click((e) => {
|
|||
|
||||
$(document).keydown((e) => {
|
||||
if (isPreviewingTheme) {
|
||||
console.log("applying theme");
|
||||
applyCustomThemeColors();
|
||||
// previewTheme(config.theme, false);
|
||||
}
|
||||
|
|
|
@ -1181,7 +1181,7 @@ function applyCustomThemeColors() {
|
|||
});
|
||||
} else {
|
||||
$(".current-theme").text(config.theme.replace("_", " "));
|
||||
previewTheme(config.theme);
|
||||
previewTheme(config.theme, false);
|
||||
clearCustomTheme();
|
||||
}
|
||||
setTimeout(() => {
|
||||
|
|
Loading…
Reference in a new issue