removing img tag when no custom background is used. closes #1633

This commit is contained in:
Miodec 2021-07-16 20:30:23 +01:00
parent e007a96968
commit 9c5ef794f0

View file

@ -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>`);
}
}