Skip to content

Commit

Permalink
fix(bug): fixes bug where Android version 'all' could lead to crashes
Browse files Browse the repository at this point in the history
  • Loading branch information
wessberg committed Jun 20, 2019
1 parent 2d3ba18 commit 886569b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/browserslist-generator/browserslist-generator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -573,7 +573,7 @@ export function browsersWithoutSupportForFeatures(...features: string[]): string
*/
function shouldIgnoreBrowser(browser: CaniuseBrowser, version: string): boolean {
return (
(browser === "android" && gt(coerceToString(browser, version), coerceToString(browser, "4.4.4"))) ||
(browser === "android" && version !== "all" && gt(coerceToString(browser, version), coerceToString(browser, "4.4.4"))) ||
(browser === "op_mob" && gt(coerceToString(browser, version), coerceToString(browser, "12.1"))) ||
IGNORED_BROWSERS.has(browser)
);
Expand Down

0 comments on commit 886569b

Please sign in to comment.