mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-05 13:27:49 +08:00
Fixed hover random theme bug
This commit is contained in:
parent
2e607e6ae5
commit
d6db996a78
1 changed files with 4 additions and 1 deletions
|
@ -370,7 +370,10 @@ $("#commandLineWrapper #commandLine .suggestions").on("mouseover", (e) => {
|
|||
let list = 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);
|
||||
obj.hover();
|
||||
|
|
Loading…
Reference in a new issue