From 2890b3929d7851df95237456a8c04654391b50e2 Mon Sep 17 00:00:00 2001 From: nq5 <56346593+nq5@users.noreply.github.com> Date: Thu, 1 Jun 2023 00:35:41 +0100 Subject: [PATCH] chore: correct spelling and grammar in index.js (#216) --- assets/index.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/assets/index.js b/assets/index.js index 54c3ed4..fa9259e 100644 --- a/assets/index.js +++ b/assets/index.js @@ -103,7 +103,7 @@ function ready() { setupIndexPage(); } else if (DATA.kind == "Edit") { - document.title = `Edit of ${DATA.href} - Dufs`; + document.title = `Edit ${DATA.href} - Dufs`; document.querySelector(".editor-page").classList.remove("hidden");; setupEditPage(); @@ -266,7 +266,7 @@ function setupIndexPage() { if (DATA.allow_archive) { const $download = document.querySelector(".download"); $download.href = baseUrl() + "?zip"; - $download.title = "Download folder as div .zip file"; + $download.title = "Download folder as a .zip file"; $download.classList.remove("hidden"); } @@ -526,7 +526,7 @@ async function setupEditPage() { $notEditable.insertAdjacentHTML("afterend", ``) } else { $notEditable.classList.remove("hidden"); - $notEditable.textContent = "Cannot edit because it is too large or binary."; + $notEditable.textContent = "Cannot edit because file is too large or binary."; } return; } @@ -620,7 +620,7 @@ async function doMovePath(fileUrl) { method: "HEAD", }); if (res1.status === 200) { - if (!confirm("Override exsis file?")) { + if (!confirm("Override existing file?")) { return; } }