From e54734ae4b5ffb14358f0f560f79b8ff6026d764 Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Thu, 12 Oct 2017 21:38:59 -0400 Subject: [PATCH] Fix Face URI quoting --- js/playfield.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/playfield.js b/js/playfield.js index 6051de7..e6a6103 100644 --- a/js/playfield.js +++ b/js/playfield.js @@ -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);