mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-21 15:24:09 +00:00
Dom widget store (#2899)
This commit is contained in:
@@ -312,3 +312,9 @@ export const paramsToCacheKey = (params: unknown): string => {
|
||||
|
||||
return String(params)
|
||||
}
|
||||
|
||||
/**
|
||||
* Generates a random 4-character string to use as a unique suffix
|
||||
*/
|
||||
export const generateRandomSuffix = (): string =>
|
||||
Math.random().toString(36).substring(2, 6)
|
||||
|
||||
Reference in New Issue
Block a user