Function detectPlatform

  • Infers the platform from the user agent string.

    Parameters

    • userAgent: string = ...

      A user agent string.

    Returns Platform