Update index.html
This commit is contained in:
+2
-1
@@ -125,7 +125,8 @@
|
|||||||
ev.preventDefault();
|
ev.preventDefault();
|
||||||
|
|
||||||
const url = new URL("api/streams", location.href);
|
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);
|
fetch(url, {method: "DELETE"}).then(reload);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user