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