Compare commits
2 Commits
ba4d810164
...
3e926844b8
| Author | SHA1 | Date | |
|---|---|---|---|
| 3e926844b8 | |||
| fe9f8add88 |
@@ -208,7 +208,7 @@
|
|||||||
url.pathname += `/${filename}`;
|
url.pathname += `/${filename}`;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const response = await fetch(`api/${url}`, { method: 'DELETE' });
|
const response = await fetch(`/api${url.pathname}`, { method: 'DELETE' });
|
||||||
if (response.status == 204) {
|
if (response.status == 204) {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
window.location.reload();
|
window.location.reload();
|
||||||
|
|||||||
Reference in New Issue
Block a user