parent
fb03f7ddb8
commit
be3ae2fe00
1 changed files with 2 additions and 0 deletions
|
@ -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",
|
||||||
|
|
Loading…
Reference in a new issue