Fixed URL loading if a space in the path

Signed-off-by: James Ketrenos <james_gitlab@ketrenos.com>
This commit is contained in:
James Ketrenos 2020-01-02 19:46:17 -08:00
parent d82ca4982a
commit 594a2bdc68

View File

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