@consumidor-positivo/ts-utils - v1.16.0
    Preparing search index...

    Function openFileBlobInTab

    • Opens a file blob in a new tab.

      Parameters

      • blob: Blob

        The blob representing the file content.

      • OptionaltimeRevokeUrl: number = 25000

        The time in milliseconds to revoke the file URL (default is 25000ms).

      Returns void

      If the blob parameter is not provided.

      const blob = new Blob([data], { type: 'application/pdf' });
      openFileBlobInTab(blob);