Documentation
    Preparing search index...

    Function isPajaLocalHtmlFile

    • Return whether a file name or MIME type identifies an HTML document.

      Parameters

      • file: { name: string; type?: string }

        File name and optional MIME type.

      Returns boolean

      true for .html/.htm names or a text/html type.

      isPajaLocalHtmlFile({ name: 'index.html' }); // true