Function getOrdinalApiFromIFrame

  • Detects and extracts Open Ordinal API if present in an Iframe.

    Parameters

    • iframe: HTMLIFrameElement

      The iframe element to check for the Open Ordinal API.

    Returns Promise<any>

    • A promise that resolves with the Open Ordinal API if available, otherwise rejects with an error message.