refac
This commit is contained in:
1 parent
f59d86a10c
commit
2f2bf38e34
1 file changed
+3
-1
@@ -845,7 +845,7 @@
|
||||
};
|
||||
|
||||
// ── Lifecycle ────────────────────────────────────────────────────────
|
||||
onMount(async () => {
|
||||
onMount(() => {
|
||||
const terminal = getTerminal();
|
||||
|
||||
let handledDisplayFile = false;
|
||||
@@ -904,6 +904,7 @@
|
||||
if (!handledDisplayFile && terminal) {
|
||||
loading = true;
|
||||
|
||||
void (async () => {
|
||||
// Discover server features on initial mount
|
||||
const config = await getTerminalConfig(terminal.url, terminal.key);
|
||||
terminalEnabled = config?.features?.terminal !== false;
|
||||
@@ -914,6 +915,7 @@
|
||||
}
|
||||
savedPath = clampToFileRoot(savedPath);
|
||||
loadDir(savedPath);
|
||||
})();
|
||||
}
|
||||
|
||||
mounted = true;
|
||||
|
||||
Reference in new issue
Block a user