danschultz / browser_detect.dart

A Dart package that provides information about the user's web browser.
Other
9 stars 9 forks source link

Browser detect simply fails on Chrome on iOS #14

Open enyo opened 6 years ago

enyo commented 6 years ago

This is the code in src/browser.dart:

  BrowserVersion get version {
    if (_version == null) {
      var value = _versionMatchers.map((matcher) => matcher())
          // vvvv This is the offending line vvvv
          .firstWhere((match) => match != null)
          .group(1);
      _version = new BrowserVersion(value);
    }
    return _version;
  }

If no match is found, then this simply throws