mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-03-12 15:08:45 +08:00
removing img tag when no custom background is used. closes #1633
This commit is contained in:
parent
e007a96968
commit
9c5ef794f0
1 changed files with 2 additions and 1 deletions
|
@ -169,11 +169,12 @@ export function applyCustomBackground() {
|
|||
// backgroundImage: `url(${Config.customBackground})`,
|
||||
// backgroundAttachment: "fixed",
|
||||
// });
|
||||
$(".customBackground").html(`<img src="${Config.customBackground}"></img>`);
|
||||
if (Config.customBackground === "") {
|
||||
$("#words").removeClass("noErrorBorder");
|
||||
$(".customBackground img").remove();
|
||||
} else {
|
||||
$("#words").addClass("noErrorBorder");
|
||||
$(".customBackground").html(`<img src="${Config.customBackground}"></img>`);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue