mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-10-28 14:15:24 +00:00
fix(split-screen): allow layout creation without randomUUID (#1490)
* fix(split-screen): allow layout creation without randomUUID * test(credentials): avoid flaky Ed25519 key generation
This commit is contained in:
1 parent
4e652720af
commit
107cf55d8c
3 files changed
+103
-2
No files matched your search
+4
-1
@@ -1926,7 +1926,10 @@ export function AppShell({
|
||||
}
|
||||
const splitNumber =
|
||||
tabs.filter((tab) => tab.type === "split-screen").length + 1;
|
||||
const instanceId = crypto.randomUUID();
|
||||
const instanceId =
|
||||
typeof crypto.randomUUID === "function"
|
||||
? crypto.randomUUID()
|
||||
: `${Date.now().toString(36)}-${Math.random().toString(36).slice(2)}-${Math.random().toString(36).slice(2)}`;
|
||||
const id = `split-${instanceId}`;
|
||||
const sizes = defaultSizes(mode);
|
||||
const splitTab: Tab = {
|
||||
|
||||
Reference in new issue
Block a user