Atualização automática: 2026-05-18 20:12:35
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user