From 8f454e89ba86f5c16cb6a02c9ee12d25593bf043 Mon Sep 17 00:00:00 2001 From: Hermes Date: Sat, 23 May 2026 23:31:43 +0000 Subject: [PATCH] =?UTF-8?q?Atualiza=C3=A7=C3=A3o=20autom=C3=A1tica:=202026?= =?UTF-8?q?-05-23=2023:31:43?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web-interface/public/app-new.js | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/web-interface/public/app-new.js b/web-interface/public/app-new.js index 5041e09..5d1654d 100644 --- a/web-interface/public/app-new.js +++ b/web-interface/public/app-new.js @@ -223,7 +223,14 @@ async function handleCloneSubmit(e) { const includeCSS = includeCSSEl.checked; const includeJS = includeJSEl.checked; const convertLinks = convertLinksEl.checked; - const folderName = customFolderEl ? customFolderEl.value.trim() : ''; + let folderName = customFolderEl ? customFolderEl.value.trim() : ''; + if (folderName.includes('/root/Desktop/CLONE_SITE/')) { + folderName = folderName.replace('/root/Desktop/CLONE_SITE/', '').trim(); + } else if (folderName.includes('/root/Desktop/CLONE_SITE')) { + folderName = folderName.replace('/root/Desktop/CLONE_SITE', '').trim(); + } + // Caso tenha digitado caminhos absolutos, extrair apenas o final + folderName = folderName.replace(/[\/\\]/g, '').trim(); const cloneMethod = 'wget'; if (!url) { @@ -597,7 +604,7 @@ function loadSettings() { // Populate settings form (if needed) const outDirInput = document.getElementById('settingsOutputDir'); - if (outDirInput) outDirInput.value = settings.outputDir || '/root/Desktop/Clonados'; + if (outDirInput) outDirInput.value = settings.outputDir || '/root/Desktop/CLONE_SITE'; } function saveSettings() {