Commit
·
a1a7e5b
1
Parent(s):
e2e6687
Update templates/index.html
Browse files- templates/index.html +2 -2
templates/index.html
CHANGED
|
@@ -280,7 +280,7 @@
|
|
| 280 |
const locationName = document.getElementById('location-name');
|
| 281 |
locationName.textContent = "{{ page_title }}";
|
| 282 |
|
| 283 |
-
const newUrl = "{{ url|safe }}";
|
| 284 |
|
| 285 |
function refreshImage() {
|
| 286 |
let xhr = new XMLHttpRequest();
|
|
@@ -289,7 +289,7 @@
|
|
| 289 |
if (xhr.readyState === 4) {
|
| 290 |
if (xhr.status === 200) {
|
| 291 |
if (xhr.getResponseHeader('Content-Type') === 'image/jpeg') {
|
| 292 |
-
img.src = newUrl + '
|
| 293 |
}
|
| 294 |
}
|
| 295 |
}
|
|
|
|
| 280 |
const locationName = document.getElementById('location-name');
|
| 281 |
locationName.textContent = "{{ page_title }}";
|
| 282 |
|
| 283 |
+
const newUrl = decodeURIComponent("{{ url|safe }}");
|
| 284 |
|
| 285 |
function refreshImage() {
|
| 286 |
let xhr = new XMLHttpRequest();
|
|
|
|
| 289 |
if (xhr.readyState === 4) {
|
| 290 |
if (xhr.status === 200) {
|
| 291 |
if (xhr.getResponseHeader('Content-Type') === 'image/jpeg') {
|
| 292 |
+
img.src = newUrl + '&t=' + new Date().getTime();
|
| 293 |
}
|
| 294 |
}
|
| 295 |
}
|