Skip to content

Commit

Permalink
Don’t overwrite default browser config with nil
Browse files Browse the repository at this point in the history
Fixes #12 and #11.
  • Loading branch information
porada committed Oct 18, 2014
1 parent 2d1a888 commit 289fc18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/middleman-autoprefixer/extension.rb
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def process(response, path)

def prefix(content)
config = {}
config[:browsers] = Array(@browsers)
config[:browsers] = Array(@browsers) unless @browsers.nil?
config[:cascade] = @cascade unless @cascade.nil?

::AutoprefixerRails.process(content, config).css
Expand Down

1 comment on commit 289fc18

@porada
Copy link
Contributor Author

@porada porada commented on 289fc18 Oct 18, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

…or rather with [].

Please sign in to comment.