Korjattu syntaksivirhe: ylimääräinen }); poistettu openInEditorista
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -580,8 +580,7 @@ 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-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) {
|
||||
if (!window._editorModels[name] || !window._monaco) return;
|
||||
|
||||
Reference in New Issue
Block a user