mirror of
https://github.com/sigoden/dufs.git
synced 2026-04-09 09:09:03 +03:00
@@ -125,6 +125,8 @@ async function deletePath(index) {
|
|||||||
const file = DATA.paths[index];
|
const file = DATA.paths[index];
|
||||||
if (!file) return;
|
if (!file) return;
|
||||||
|
|
||||||
|
if (!confirm(`Delete \`${file.name}\`?`)) return;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const res = await fetch(getUrl(file.name), {
|
const res = await fetch(getUrl(file.name), {
|
||||||
method: "DELETE",
|
method: "DELETE",
|
||||||
|
|||||||
Reference in New Issue
Block a user