Fix Face URI quoting

This commit is contained in:
Adam Goldsmith 2017-10-12 21:38:59 -04:00
parent 6deeba8e25
commit 11e86330b6

View File

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