Skip to content

armgit / my-yt

Public Imported from GitHub
0

A clean and minimal youtube frontend, without all the ads and whistles

JavaScript

fix: reset video player when deleting

Christian Feib3e4ae535ad0
diff --git a/client/components/video-element.js b/client/components/video-element.js
index 2c9b88c..c525d06 100644
--- a/client/components/video-element.js
+++ b/client/components/video-element.js
@@ -136,6 +136,7 @@ class VideoElement extends HTMLElement {
console.log('Video deleted')
this.video.downloaded = false
this.classList.remove('downloading')
+ this.classList.remove('big')
this.querySelector('video') && this.unregisterVideoEvents(this.querySelector('video'))
this.render()
})