// Simple static server and browser opener for generated site
window.openGeneratedSite = async function() {
    // Path to generated site (adjust if needed)
    const exportDir = 'export';
    const indexPath = `${exportDir}/index.html`;
    // Use eel to start a Python HTTP server and open browser
    try {
        await eel.serve_and_open_site(exportDir, indexPath)();
    } catch (e) {
        alert('Nem sikerült megnyitni a generált weboldalt: ' + (e && e.message ? e.message : e));
    }
};
