Atualização automática: 2026-05-18 20:12:35

This commit is contained in:
Hermes
2026-05-18 20:12:35 +00:00
parent 37612a7b81
commit e596342950
5 changed files with 92 additions and 23 deletions
+2 -14
View File
@@ -593,20 +593,8 @@ function saveSettings() {
// Utility Functions
function openClonedSite(directory) {
// Try to open via server endpoint
fetch('/api/health', {
method: 'GET'
}).then(response => {
if (response.ok) {
// Server is running, open the site via same origin
const siteName = directory.replace(/\\/g, '/').split('/').pop();
window.open(`/${siteName}/index.html`, '_blank');
} else {
showToast('Servidor não está respondendo.', 'error');
}
}).catch(error => {
showToast('Servidor não está respondendo.', 'error');
});
const siteName = directory.replace(/\\/g, '/').split('/').pop();
window.open(`/api/preview/${siteName}`, '_blank');
}
function openCloneFolder(directory) {