mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-05 05:17:51 +08:00
changed the way custom background is applied
This commit is contained in:
parent
c5dae38d70
commit
42bacc2b49
1 changed files with 4 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue