Skip to content

Commit 39b9e47

Browse files
committed
undo unrelated formatting changes
1 parent b10cc27 commit 39b9e47

1 file changed

Lines changed: 4 additions & 9 deletions

File tree

src/dom-to-image-more.js

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,8 @@
474474
});
475475

476476
function fixResponsiveImages() {
477-
if (util.isHTMLImageElement(clone)) {
477+
if (util.isHTMLImageElement(clone))
478+
{
478479
// Remove lazy-loading and responsive attributes
479480
clone.removeAttribute('loading');
480481

@@ -881,8 +882,7 @@
881882
const status = xhr.status;
882883
// In local files, status is 0 upon success in Mozilla Firefox
883884
if (
884-
(status === 0 &&
885-
url.toLowerCase().startsWith('file://')) ||
885+
(status === 0 && url.toLowerCase().startsWith('file://')) ||
886886
(status >= 200 && status <= 300 && xhr.response !== null)
887887
) {
888888
const response = xhr.response;
@@ -922,12 +922,7 @@
922922
if (placeholder) {
923923
resolve(placeholder);
924924
} else {
925-
fail(
926-
'Status:' +
927-
xhr.status +
928-
' while fetching resource: ' +
929-
url
930-
);
925+
fail('Status:' + xhr.status + ' while fetching resource: ' + url);
931926
}
932927
}
933928

0 commit comments

Comments
 (0)