Skip to content

Commit 5fd1bd7

Browse files
committed
refactor: removed unnecessary code part
1 parent b5382ce commit 5fd1bd7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/loading-attribute-polyfill.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,7 @@ function onPrinting() {
132132
*/
133133
function prepareElement(mediaTag) {
134134
if (
135-
((mediaTag.tagName?.toLowerCase() === 'img' ||
136-
mediaTag.tagName?.toLowerCase() === 'picture') &&
135+
(mediaTag.tagName?.toLowerCase() === 'img' &&
137136
!capabilities.loading.image) ||
138137
(mediaTag.tagName?.toLowerCase() === 'iframe' &&
139138
!capabilities.loading.iframe)

0 commit comments

Comments
 (0)