Spaces:
Running
Running
Commit
·
3ceccfb
1
Parent(s):
5f2db51
Update templates/index.html
Browse files- templates/index.html +8 -8
templates/index.html
CHANGED
@@ -307,10 +307,17 @@
|
|
307 |
isJpeg = false;
|
308 |
}
|
309 |
}
|
|
|
310 |
} catch (error) {
|
311 |
console.error('Fetch failed:', error);
|
312 |
|
313 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
314 |
}
|
315 |
|
316 |
async function init() {
|
@@ -321,14 +328,7 @@
|
|
321 |
infoText.style.opacity = "0";
|
322 |
locationName.textContent = "{{ page_title|safe }}";
|
323 |
|
324 |
-
|
325 |
-
setTimeout(async () => {
|
326 |
-
await refreshImage();
|
327 |
-
}, 250);
|
328 |
-
}
|
329 |
-
else {
|
330 |
-
await refreshImage();
|
331 |
-
}
|
332 |
|
333 |
feed.onload = function() {
|
334 |
if (firstLoad) {
|
|
|
307 |
isJpeg = false;
|
308 |
}
|
309 |
}
|
310 |
+
|
311 |
} catch (error) {
|
312 |
console.error('Fetch failed:', error);
|
313 |
|
314 |
}
|
315 |
+
|
316 |
+
if (isJpeg) {
|
317 |
+
setTimeout(async () => {
|
318 |
+
await refreshImage();
|
319 |
+
}, 250);
|
320 |
+
}
|
321 |
}
|
322 |
|
323 |
async function init() {
|
|
|
328 |
infoText.style.opacity = "0";
|
329 |
locationName.textContent = "{{ page_title|safe }}";
|
330 |
|
331 |
+
await refreshImage();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
332 |
|
333 |
feed.onload = function() {
|
334 |
if (firstLoad) {
|