Function detectBrowser

  • Infers the browser type from the user agent string.

    Parameters

    • userAgent: string = ...

    Returns BrowserType