mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-05 13:27:49 +08:00
Fixed scroll random theme bug
This commit is contained in:
parent
d6db996a78
commit
09fbbbf25e
1 changed files with 4 additions and 1 deletions
|
@ -494,7 +494,10 @@ $(document).keydown((e) => {
|
|||
CommandlineLists.current[CommandlineLists.current.length - 1];
|
||||
$.each(list.list, (index, obj) => {
|
||||
if (obj.id == hoverId) {
|
||||
if (!/theme/gi.test(obj.id) || obj.id === "toggleCustomTheme")
|
||||
if (
|
||||
(!/theme/gi.test(obj.id) || obj.id === "toggleCustomTheme") &&
|
||||
!ThemeController.randomTheme
|
||||
)
|
||||
ThemeController.clearPreview();
|
||||
if (!/font/gi.test(obj.id))
|
||||
Config.previewFontFamily(Config.fontFamily);
|
||||
|
|
Loading…
Reference in a new issue