Skip to content

Commit

Permalink
fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
natalan committed Jun 7, 2019
1 parent b3e3087 commit c8420d8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/js/html.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ function cloneElement (element, params) {
const clone = element.cloneNode()

// Loop over and process the children elements / nodes (including text nodes)
const childNodesArray = Array.prototype.slice.call(element.childNodes);
const childNodesArray = Array.prototype.slice.call(element.childNodes)
for (let i = 0; i < childNodesArray.length; i++) {
// Check if we are skiping the current element
if (params.ignoreElements.indexOf(childNodesArray[i].id) !== -1) {
Expand Down
10 changes: 5 additions & 5 deletions src/js/print.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,11 @@ function performPrint (iframeElement, params) {

function loadIframeImages (images) {
const promises = Array.prototype.slice.call(images).reduce((memo, image) => {
if (image.src && image.src !== window.location.href) {
memo.push(loadIframeImage(image));
}
return memo;
}, []);
if (image.src && image.src !== window.location.href) {
memo.push(loadIframeImage(image))
}
return memo
}, [])

return Promise.all(promises)
}
Expand Down

0 comments on commit c8420d8

Please sign in to comment.