Skip to content

Commit

Permalink
correct targetStyles match
Browse files Browse the repository at this point in the history
  • Loading branch information
crabbly committed Jun 3, 2018
1 parent 17e273b commit 99b6e2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/functions.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export function collectStyles (element, params) {

Object.keys(styles).map(key => {
// Check if style should be processed
if (params.targetStyles === '*' || params.targetStyle.indexOf(styles[key]) !== -1 || targetStylesMatch(params.targetStyles, styles[key])) {
if (params.targetStyles === ['*'] || params.targetStyle.indexOf(styles[key]) !== -1 || targetStylesMatch(params.targetStyles, styles[key])) {
elementStyle += styles[key] + ':' + styles.getPropertyValue(styles[key]) + ';'
}
})
Expand Down

0 comments on commit 99b6e2f

Please sign in to comment.