Fix Face URI quoting
This commit is contained in:
parent
6deeba8e25
commit
11e86330b6
@ -255,7 +255,7 @@ function makeCard(cardNum) {
|
||||
card.style.backgroundPositionY =
|
||||
-Math.floor(cardNum/deckWidth) * parseInt(style.getPropertyValue("height")) + "px";
|
||||
let faceURI = encodeURI(deckJSON.CustomDeck[deckNum].FaceURL);
|
||||
card.style.backgroundImage = `url(${faceURI})`;
|
||||
card.style.backgroundImage = `url("${faceURI}")`;
|
||||
card.style.backgroundSize = `${deckWidth * 100}% ${deckHeight * 100}%`;
|
||||
document.body.removeChild(card);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user