Fix player destroying.

Regression from moving to a component.
This commit is contained in:
FireMasterK
2021-04-03 21:15:45 +05:30
parent 2c8bde922c
commit 87e922e06d
2 changed files with 7 additions and 7 deletions

View File

@@ -98,13 +98,6 @@ export default {
this.getVideoData();
this.getSponsors();
},
beforeUnmount() {
if (window.player) {
window.player.destroy();
window.player = undefined;
window.ui = undefined;
}
},
watch: {
"$route.query.v": function(v) {
if (v) {