mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-28 10:31:20 -08:00
fix: cancel video loading after destroying (#883)
This commit is contained in:
1 parent
4b4973eeb3
commit
a8458b050b
1 file changed
+1
@@ -145,6 +145,7 @@ export default class Template {
|
|||||||
}
|
}
|
||||||
|
|
||||||
destroy(removeHtml) {
|
destroy(removeHtml) {
|
||||||
|
this.$video.src = '';
|
||||||
if (removeHtml) {
|
if (removeHtml) {
|
||||||
this.$container.innerHTML = '';
|
this.$container.innerHTML = '';
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in new issue
Block a user