Skip to content

Commit

Permalink
Merge pull request #1 from robkorv/node-legacy
Browse files Browse the repository at this point in the history
fixed TypeError: Object has no method 'includes'
  • Loading branch information
robkorv committed Jul 26, 2015
2 parents 45a70f7 + cae7d5e commit 84e399e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ var plugin = postcss.plugin('postcss-selector-prefix', function (prefix) {
return function (root) {
root.eachRule(function (rule) {
rule.selectors = rule.selectors.map(function(selector) {
if (selector.includes(prefix)) {
if (selector.indexOf(prefix) !== -1) {
return selector;
}
else if (selector === 'body' || selector === 'html'){
Expand Down

0 comments on commit 84e399e

Please sign in to comment.