mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-11 08:14:11 +08:00
fixed load from preset button not working
This commit is contained in:
parent
baba5c656a
commit
c7322a6d52
2 changed files with 4 additions and 4 deletions
|
@ -222,7 +222,7 @@ $(".pageSettings .saveCustomThemeButton").click((e) => {
|
|||
|
||||
$(".pageSettings #loadCustomColorsFromPreset").click((e) => {
|
||||
// previewTheme(Config.theme);
|
||||
ThemeController.preview(Config.theme);
|
||||
$("#currentTheme").attr("href", `themes/${Config.theme}.css`);
|
||||
|
||||
ThemeController.colorVars.forEach((e) => {
|
||||
document.documentElement.style.setProperty(e, "");
|
||||
|
|
|
@ -163,13 +163,13 @@ export function applyCustomBackground() {
|
|||
}
|
||||
|
||||
export function applyCustomBackgroundSize() {
|
||||
if (Config.customBackgroundSize == "max"){
|
||||
if (Config.customBackgroundSize == "max") {
|
||||
$(".customBackground").css({
|
||||
backgroundSize: "100% 100%" ,
|
||||
backgroundSize: "100% 100%",
|
||||
});
|
||||
} else if (Config.customBackgroundSize != "") {
|
||||
$(".customBackground").css({
|
||||
backgroundSize: Config.customBackgroundSize,
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue