mirror of
https://github.com/SoPat712/videospeed.git
synced 2025-08-22 02:18:45 -04:00
Check for both .src and .currentSrc in mutation (#567)
This commit is contained in:

committed by
Ilya Grigorik

parent
9b48bfa7c0
commit
23591c6077
@@ -184,7 +184,7 @@
|
|||||||
if(!controller){
|
if(!controller){
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (!mutation.target.currentSrc) {
|
if (!mutation.target.src && !mutation.target.currentSrc) {
|
||||||
controller.classList.add('vsc-nosource');
|
controller.classList.add('vsc-nosource');
|
||||||
} else {
|
} else {
|
||||||
controller.classList.remove('vsc-nosource');
|
controller.classList.remove('vsc-nosource');
|
||||||
|
Reference in New Issue
Block a user