From 037d208bb08a3fd3710cc861fe15038c4c026eba Mon Sep 17 00:00:00 2001 From: Rodrigo Date: Sun, 26 May 2019 11:23:24 -0400 Subject: [PATCH] Update scan styles conditional --- src/js/html.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/js/html.js b/src/js/html.js index 8255a10..8983730 100644 --- a/src/js/html.js +++ b/src/js/html.js @@ -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) {