mirror of
https://github.com/TeamPiped/Piped.git
synced 2024-08-30 18:43:17 +00:00
Fix player destroying.
Regression from moving to a component.
This commit is contained in:
parent
2c8bde922c
commit
87e922e06d
@ -136,6 +136,13 @@ export default {
|
|||||||
ui.configure(config);
|
ui.configure(config);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
beforeUnmount() {
|
||||||
|
if (this.player) {
|
||||||
|
this.player.destroy();
|
||||||
|
this.player = undefined;
|
||||||
|
this.ui = undefined;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
@ -98,13 +98,6 @@ export default {
|
|||||||
this.getVideoData();
|
this.getVideoData();
|
||||||
this.getSponsors();
|
this.getSponsors();
|
||||||
},
|
},
|
||||||
beforeUnmount() {
|
|
||||||
if (window.player) {
|
|
||||||
window.player.destroy();
|
|
||||||
window.player = undefined;
|
|
||||||
window.ui = undefined;
|
|
||||||
}
|
|
||||||
},
|
|
||||||
watch: {
|
watch: {
|
||||||
"$route.query.v": function(v) {
|
"$route.query.v": function(v) {
|
||||||
if (v) {
|
if (v) {
|
||||||
|
Loading…
Reference in New Issue
Block a user