mirror of
https://github.com/sigoden/dufs.git
synced 2026-04-09 17:13:02 +03:00
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user