We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f194668 commit b322150Copy full SHA for b322150
1 file changed
frontend/src/context/CommandManager.tsx
@@ -79,7 +79,9 @@ export class CommandManager {
79
}
80
81
private generateCommandId(): string {
82
- return crypto.randomUUID(); // if supported
+ return typeof crypto !== "undefined" && crypto.randomUUID
83
+ ? crypto.randomUUID()
84
+ : (Date.now() + Math.random()).toString(36);
85
// Or fallback: return (Date.now() + Math.random()).toString(36);
86
87
0 commit comments