File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ function cloneElement (element, params) {
3030 const clone = element . cloneNode ( )
3131
3232 // Loop over and process the children elements / nodes (including text nodes)
33- const childNodesArray = Array . prototype . slice . call ( element . childNodes ) ;
33+ const childNodesArray = Array . prototype . slice . call ( element . childNodes )
3434 for ( let i = 0 ; i < childNodesArray . length ; i ++ ) {
3535 // Check if we are skiping the current element
3636 if ( params . ignoreElements . indexOf ( childNodesArray [ i ] . id ) !== - 1 ) {
Original file line number Diff line number Diff line change @@ -69,11 +69,11 @@ function performPrint (iframeElement, params) {
6969
7070function loadIframeImages ( images ) {
7171 const promises = Array . prototype . slice . call ( images ) . reduce ( ( memo , image ) => {
72- if ( image . src && image . src !== window . location . href ) {
73- memo . push ( loadIframeImage ( image ) ) ;
74- }
75- return memo ;
76- } , [ ] ) ;
72+ if ( image . src && image . src !== window . location . href ) {
73+ memo . push ( loadIframeImage ( image ) )
74+ }
75+ return memo
76+ } , [ ] )
7777
7878 return Promise . all ( promises )
7979}
You can’t perform that action at this time.
0 commit comments