Commit
·
2e9a208
1
Parent(s):
c1ee1a8
Update templates/index.html
Browse files- templates/index.html +2 -2
templates/index.html
CHANGED
|
@@ -284,6 +284,7 @@
|
|
| 284 |
async function refreshImage() {
|
| 285 |
if (isLoading) return;
|
| 286 |
isLoading = true;
|
|
|
|
| 287 |
controller = new AbortController();
|
| 288 |
signal = controller.signal;
|
| 289 |
|
|
@@ -389,10 +390,9 @@
|
|
| 389 |
});
|
| 390 |
|
| 391 |
// Stop stream when click button
|
| 392 |
-
document.querySelectorAll('
|
| 393 |
button.addEventListener('click', () => {
|
| 394 |
controller.abort();
|
| 395 |
-
window.location.replace('?new=true')
|
| 396 |
});
|
| 397 |
});
|
| 398 |
|
|
|
|
| 284 |
async function refreshImage() {
|
| 285 |
if (isLoading) return;
|
| 286 |
isLoading = true;
|
| 287 |
+
controller.abort();
|
| 288 |
controller = new AbortController();
|
| 289 |
signal = controller.signal;
|
| 290 |
|
|
|
|
| 390 |
});
|
| 391 |
|
| 392 |
// Stop stream when click button
|
| 393 |
+
document.querySelectorAll('.hoverButton').forEach(button => {
|
| 394 |
button.addEventListener('click', () => {
|
| 395 |
controller.abort();
|
|
|
|
| 396 |
});
|
| 397 |
});
|
| 398 |
|