mirror of
https://github.com/sigoden/dufs
synced 2024-09-30 05:03:31 +00:00
parent
fb03f7ddb8
commit
be3ae2fe00
|
@ -125,6 +125,8 @@ async function deletePath(index) {
|
|||
const file = DATA.paths[index];
|
||||
if (!file) return;
|
||||
|
||||
if (!confirm(`Delete \`${file.name}\`?`)) return;
|
||||
|
||||
try {
|
||||
const res = await fetch(getUrl(file.name), {
|
||||
method: "DELETE",
|
||||
|
|
Loading…
Reference in a new issue