Skip to content

Commit c8420d8

Browse files
committed
fix linter
1 parent b3e3087 commit c8420d8

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

src/js/html.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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) {

src/js/print.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,11 @@ function performPrint (iframeElement, params) {
6969

7070
function 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
}

0 commit comments

Comments
 (0)