Atualização automática: 2026-05-23 20:55:21
This commit is contained in:
@@ -304,7 +304,10 @@ async function startCloning(url, options) {
|
||||
response = await fetch('/api/smart-clone', {
|
||||
method: 'POST',
|
||||
headers: { 'Content-Type': 'application/json' },
|
||||
body: JSON.stringify({ url })
|
||||
body: JSON.stringify({
|
||||
url,
|
||||
outputDir: settings.outputDir
|
||||
})
|
||||
});
|
||||
} else {
|
||||
// WGET logic
|
||||
@@ -313,7 +316,8 @@ async function startCloning(url, options) {
|
||||
headers: { 'Content-Type': 'application/json' },
|
||||
body: JSON.stringify({
|
||||
url,
|
||||
depth: options.depth
|
||||
depth: options.depth,
|
||||
outputDir: settings.outputDir
|
||||
})
|
||||
});
|
||||
}
|
||||
@@ -584,9 +588,13 @@ function loadSettings() {
|
||||
}
|
||||
|
||||
// Populate settings form (if needed)
|
||||
const outDirInput = document.getElementById('settingsOutputDir');
|
||||
if (outDirInput) outDirInput.value = settings.outputDir || '/root/Desktop/Clonados';
|
||||
}
|
||||
|
||||
function saveSettings() {
|
||||
const outDirInput = document.getElementById('settingsOutputDir');
|
||||
if (outDirInput) settings.outputDir = outDirInput.value;
|
||||
localStorage.setItem('cloneSettings', JSON.stringify(settings));
|
||||
showToast('Configurações salvas!', 'success');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user