Check for both .src and .currentSrc in mutation (#567)

This commit is contained in:
Timothy Lim
2019-12-27 00:32:49 +08:00
committed by Ilya Grigorik
parent 9b48bfa7c0
commit 23591c6077

View File

@@ -184,7 +184,7 @@
if(!controller){
return;
}
if (!mutation.target.currentSrc) {
if (!mutation.target.src && !mutation.target.currentSrc) {
controller.classList.add('vsc-nosource');
} else {
controller.classList.remove('vsc-nosource');