Skip to content

Commit 595ff27

Browse files
authored
fix(custom-theme): Remove duplicate .customTheme selectors (@Leonabcd123) (monkeytypegame#7120)
### Description Removed duplicate `.customTheme` selectors to make: ``` $(`.pageSettings .tabContent.customTheme #${color}[type='color']`).attr( "value" ) ``` Select the custom theme data inputs successfully. Closes monkeytypegame#7121 Closes monkeytypegame#7122
1 parent 13d7752 commit 595ff27

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

frontend/src/ts/modals/share-custom-theme.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ async function generateUrl(): Promise<string> {
3030
} = {
3131
c: ThemeController.colorVars.map(
3232
(color) =>
33-
$(
34-
`.pageSettings .customTheme .tabContent.customTheme #${color}[type='color']`
35-
).attr("value") as string
33+
$(`.pageSettings .tabContent.customTheme #${color}[type='color']`).attr(
34+
"value"
35+
) as string
3636
),
3737
};
3838

frontend/src/ts/modals/simple-modals.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1133,7 +1133,7 @@ list.updateCustomTheme = new SimpleModal({
11331133
for (const color of ThemeController.colorVars) {
11341134
newColors.push(
11351135
$(
1136-
`.pageSettings .customTheme .tabContent.customTheme #${color}[type='color']`
1136+
`.pageSettings .tabContent.customTheme #${color}[type='color']`
11371137
).attr("value") as string
11381138
);
11391139
}

0 commit comments

Comments
 (0)