changed the way custom background is applied

This commit is contained in:
Jack 2021-07-23 01:55:16 +01:00
parent c5dae38d70
commit 42bacc2b49

View file

@ -174,7 +174,10 @@ export function applyCustomBackground() {
$(".customBackground img").remove();
} else {
$("#words").addClass("noErrorBorder");
$(".customBackground").html(`<img src="${Config.customBackground}"></img>`);
let $img = $("<img>", {
src: Config.customBackground,
});
$(".customBackground").html($img);
}
}