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
+1 -5
View File
@@ -15,12 +15,8 @@ urlInput.addEventListener('keypress', (e) => {
document.getElementById('btnOpenSite').addEventListener('click', () => {
if (clonedData && clonedData.data && clonedData.data.path) {
// Construct local URL. Server serves /<folderName>/index.html
// We know server serves static files from cloned-sites directly if configured?
// Wait, server.js serves ../cloned-sites as static.
// so path is just /FolderName/index.html
const dirName = clonedData.data.path.split('\\').pop().split('/').pop();
window.open(`/${dirName}/index.html`, '_blank');
window.open(`/api/preview/${dirName}`, '_blank');
}
});