From 9b19f2da74376bccd125151922f2cada94eb1d0c Mon Sep 17 00:00:00 2001 From: Zutatensuppe Date: Tue, 4 May 2021 09:53:57 +0200 Subject: [PATCH] fix the preview --- public/game.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/game.js b/public/game.js index c7b5521..deb6bfc 100644 --- a/public/game.js +++ b/public/game.js @@ -183,7 +183,7 @@ function addMenuToDom(gameId) { const imgEl = ELEMENTS.DIV.cloneNode(true) imgEl.classList.add('img') - imgEl.style.backgroundImage = `url(${previewImageUrl})` + imgEl.style.backgroundImage = `url('${previewImageUrl}')` previewEl.appendChild(imgEl) const previewOverlay = ELEMENTS.DIV.cloneNode(true)