mirror of
https://github.com/hexahigh/games.git
synced 2025-12-11 20:15:38 +01:00
fix?
This commit is contained in:
parent
8111e3b030
commit
c1e62a0a2d
@ -9,8 +9,14 @@
|
|||||||
<script>
|
<script>
|
||||||
function YEET(){
|
function YEET(){
|
||||||
const url = document.getElementById("input").value
|
const url = document.getElementById("input").value
|
||||||
|
const output = document.getElementById("out")
|
||||||
fetch(url, { method: 'DELETE' })
|
fetch(url, { method: 'DELETE' })
|
||||||
.then(() => document.getElementById("out") = 'Delete successful');
|
.then((response) => {
|
||||||
|
if(response.ok) {
|
||||||
|
output.innerHTML = 'Delete successful';
|
||||||
|
}
|
||||||
|
|
||||||
|
})
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
Loading…
x
Reference in New Issue
Block a user