Function handleBrokenMedia

  • Watch for any broken media elements (img, video, audio) in the DOM tree and attempt to fix them by trying alternative blossom servers. Supports both regular HTTP blob URLs and blossom: URIs.

    Parameters

    • root: HTMLElement

      The root element to observe

    • getServers: GetServersMethod

      A method used to get a list of servers for a specific pubkey

    Returns (() => void)

    A cleanup function that disconnects the observer and removes all error listeners

      • (): void
      • Returns void