Skip to content

Commit

Permalink
Update scan styles conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
crabbly committed May 26, 2019
1 parent d9ef18d commit 037d208
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/js/html.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,9 @@ function cloneElement (element, params) {
}

// Get all styling for print element (for nodes of type element only)
if (element.nodeType === 1)
if (params.scanStyles && element.nodeType === 1) {
clone.setAttribute('style', collectStyles(element, params))
}

// Check if the element needs any state processing (copy user input data)
switch (element.tagName) {
Expand Down

0 comments on commit 037d208

Please sign in to comment.