Fix player destroyed incorrectly.

This commit is contained in:
FireMasterK 2021-02-25 19:36:19 +05:30
parent dee927c527
commit 3e0eea6ddb
No known key found for this signature in database
GPG Key ID: 8DFF5DD33E93DB58

View File

@ -105,7 +105,7 @@ export default {
}, },
beforeUnmount() { beforeUnmount() {
if (this.player) { if (this.player) {
document.querySelector("video").remove(); window.player.destroy();
window.player = undefined; window.player = undefined;
window.ui = undefined; window.ui = undefined;
} }