mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-04-23 09:08:32 +02:00
Preserve Editor State (#151)
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
import { customAlphabet } from 'nanoid';
|
||||
|
||||
const nanoid = customAlphabet('023456789abcdefghijkmnpqrstuvwxyzABCDEFGHIJKMNPQRSTUVWXYZ', 10);
|
||||
|
||||
export function generateId(): string {
|
||||
return Math.random().toString(36).slice(2);
|
||||
return nanoid();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user