Update index.html

This commit is contained in:
Sergey Krashevich
2023-02-27 02:02:32 +03:00
parent 1fe21bb300
commit eca311717a
+2 -1
View File
@@ -125,7 +125,8 @@
ev.preventDefault();
const url = new URL("api/streams", location.href);
url.searchParams.set("src", ev.target.dataset.name);
const src = decodeURIComponent(ev.target.dataset.name);
url.searchParams.set("src", src);
fetch(url, {method: "DELETE"}).then(reload);
});