From 594a2bdc68d4e9f58efdf8a93379949c6c78ae04 Mon Sep 17 00:00:00 2001 From: James Ketrenos Date: Thu, 2 Jan 2020 19:46:17 -0800 Subject: [PATCH] Fixed URL loading if a space in the path Signed-off-by: James Ketrenos --- frontend/slideshow.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/slideshow.html b/frontend/slideshow.html index 8e48a01..0818eda 100755 --- a/frontend/slideshow.html +++ b/frontend/slideshow.html @@ -111,7 +111,7 @@ function loadPhoto(index) { months[taken.getMonth()] + " " + taken.getDate() + " " + taken.getFullYear(); - document.getElementById("photo").style.backgroundImage = "url(" + url + ")"; + document.getElementById("photo").style.backgroundImage = "url(" + encodeURI(url) + ")"; countdown = 15; tick(); }