TypeError: Cannot read properties of null (reading 'getAttribute') #2599
Unanswered
realamirhe
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Any update or clarification :) ? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
plyr/src/js/plugins/youtube.js
Lines 109 to 115 in 32444c9
If
player.media
has been set tonull
(happen in the next SSR offloading)the
currentId
will be null and the!is.empty(currentId)
will befalse
so we will face an issue in accessing thegetAttribute
in the next lineplayer.media.getAttribute('src')
Is this expected behavior?
Is it guaranteed that media property to have value always?
Beta Was this translation helpful? Give feedback.
All reactions