Casey DeLorme 5 жил өмнө
parent
commit
ead5325562
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  1. 1 1
      show.js

+ 1 - 1
show.js

@@ -99,7 +99,7 @@
 			let vid = (o.e.tagName == 'VIDEO') ? 'video' : 'natural';
 			o.e.className = (o.e[vid+'Width'] / o.e[vid+'Height'] < this.parent.clientWidth / this.parent.clientHeight) ? 'fillheight' : 'fillwidth';
 			if (this.parent.firstChild !== o.e) {
-				o.e.src = o.e.src;
+				let tmp = o.e.src; o.e.src = ''; o.e.src = tmp;
 				this.parent.replaceChild(o.e, this.parent.firstChild);
 				if (vid === 'video') o.e.play();
 			}