Skip to content

Commit b7ab0db

Browse files
committed
Fix TS error by moving type def
1 parent 75a56fa commit b7ab0db

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

plugins/image-prioritizer/lazy-load.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@ const lazyVideoObserver = new IntersectionObserver(
22
( entries ) => {
33
for ( const entry of entries ) {
44
if ( entry.isIntersecting ) {
5-
/** @type {HTMLVideoElement} */
6-
const video = entry.target;
5+
const video = /** @type {HTMLVideoElement} */ entry.target;
76

87
if ( video.hasAttribute( 'data-original-poster' ) ) {
98
video.setAttribute(

0 commit comments

Comments
 (0)