Fixed URL loading if a space in the path
Signed-off-by: James Ketrenos <james_gitlab@ketrenos.com>
This commit is contained in:
parent
d82ca4982a
commit
594a2bdc68
@ -111,7 +111,7 @@ function loadPhoto(index) {
|
|||||||
months[taken.getMonth()] + " " +
|
months[taken.getMonth()] + " " +
|
||||||
taken.getDate() + " " +
|
taken.getDate() + " " +
|
||||||
taken.getFullYear();
|
taken.getFullYear();
|
||||||
document.getElementById("photo").style.backgroundImage = "url(" + url + ")";
|
document.getElementById("photo").style.backgroundImage = "url(" + encodeURI(url) + ")";
|
||||||
countdown = 15;
|
countdown = 15;
|
||||||
tick();
|
tick();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user