Korjattu syntaksivirhe: ylimääräinen }); poistettu openInEditorista

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Jaakko Vanhala
2026-04-09 21:18:58 +03:00
parent e19852a509
commit f4cf4c73b9

View File

@@ -581,7 +581,6 @@ import AgentBar from "../components/AgentBar.astro";
document.getElementById('editor-file-list').innerHTML = Object.keys(files).map(n => `<div class="dd-item" onclick="openFile('${n}')">${n}</div>`).join(''); document.getElementById('editor-file-list').innerHTML = Object.keys(files).map(n => `<div class="dd-item" onclick="openFile('${n}')">${n}</div>`).join('');
document.getElementById('editor-tabs').innerHTML = Object.keys(files).map(n => `<div class="project-tab" onclick="openFile('${n}')">${n}</div>`).join(''); document.getElementById('editor-tabs').innerHTML = Object.keys(files).map(n => `<div class="project-tab" onclick="openFile('${n}')">${n}</div>`).join('');
openFile(Object.keys(files)[0]); openFile(Object.keys(files)[0]);
});
}; };
window.openFile = function(name) { window.openFile = function(name) {
if (!window._editorModels[name] || !window._monaco) return; if (!window._editorModels[name] || !window._monaco) return;