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