Atualização automática: 2026-05-23 23:31:43
This commit is contained in:
@@ -223,7 +223,14 @@ async function handleCloneSubmit(e) {
|
|||||||
const includeCSS = includeCSSEl.checked;
|
const includeCSS = includeCSSEl.checked;
|
||||||
const includeJS = includeJSEl.checked;
|
const includeJS = includeJSEl.checked;
|
||||||
const convertLinks = convertLinksEl.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';
|
const cloneMethod = 'wget';
|
||||||
|
|
||||||
if (!url) {
|
if (!url) {
|
||||||
@@ -597,7 +604,7 @@ function loadSettings() {
|
|||||||
|
|
||||||
// Populate settings form (if needed)
|
// Populate settings form (if needed)
|
||||||
const outDirInput = document.getElementById('settingsOutputDir');
|
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() {
|
function saveSettings() {
|
||||||
|
|||||||
Reference in New Issue
Block a user