Skip to content

Commit

Permalink
Fix code style
Browse files Browse the repository at this point in the history
  • Loading branch information
crabbly committed Sep 17, 2020
1 parent de977d9 commit 3e262b9
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 @@ -19,7 +19,7 @@ export function collectStyles (element, params) {
// Loop over computed styles
const styles = win.getComputedStyle(element, '')

for (let key = 0; key < styles.length; key++) {
for (let key = 0; key < styles.length; key++) {
// Check if style should be processed
if (params.targetStyles.indexOf('*') !== -1 || params.targetStyle.indexOf(styles[key]) !== -1 || targetStylesMatch(params.targetStyles, styles[key])) {
if (styles.getPropertyValue(styles[key])) elementStyle += styles[key] + ':' + styles.getPropertyValue(styles[key]) + ';'
Expand Down

0 comments on commit 3e262b9

Please sign in to comment.