Skip to content

Commit

Permalink
Fix typo in displaying partial support percentage.
Browse files Browse the repository at this point in the history
If there are no browsers that fully support a feature and at least one browser that partially supports the feature, that partial support percentage is not shown.

Fixes #3
  • Loading branch information
mdawaffe committed Aug 4, 2015
1 parent 4ddb1dc commit 31a8874
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion caniuse.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ showFeature = (result, opts={}) ->

percentages = []
percentages.push "#{result.usage_perc_y}%".green if result.usage_perc_y
percentages.push "#{result.usage_perc_a}%".yellow if result.usage_perc_y
percentages.push "#{result.usage_perc_a}%".yellow if result.usage_perc_a
percentages = percentages.join(' ')

status = if opts.long then " [#{data.statuses[result.status]}]" else ''
Expand Down

0 comments on commit 31a8874

Please sign in to comment.