diff --git a/src/utils/functions.ts b/src/utils/functions.ts index 8d31eaa..5041656 100644 --- a/src/utils/functions.ts +++ b/src/utils/functions.ts @@ -229,8 +229,9 @@ export async function copyToClipboard(text: string): Promise { } export function getRandomId() { - return customAlphabet("0123456789abcdefghijklmnopqrstuvwxyz") -} + const nanoid = customAlphabet("0123456789abcdefghijklmnopqrstuvwxyz") + return nanoid() +} // function getChromeVersion() { // var raw = navigator.userAgent.match(/Chrom(e|ium)\/([0-9]+)\./)