MAIDR Documentation - v3.72.1
    Preparing search index...
    • Generates a unique ID with the given prefix.

      Uses a module-level counter combined with a short random suffix. Avoids crypto.randomUUID(), which is only defined in secure contexts (https/localhost) and throws on plain-HTTP pages — the exact CDN script-tag scenario this adapter targets.

      NOTE: this helper is duplicated in frappe/selectors.ts; a shared adapter utility module is a good follow-up once one exists.

      Parameters

      • prefix: string

        The prefix for the generated ID

      Returns string

      A unique string ID (e.g., "maidr-gc-1-a1b2c3")