Skip to content

armgit / my-yt

Public Imported from GitHub
0

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

JavaScript

toggle ignore video

Christian Fei1933e36456d4
diff --git a/client/components/video-element.js b/client/components/video-element.js
index 3e9e76d..e002264 100644
--- a/client/components/video-element.js
+++ b/client/components/video-element.js
@@ -149,12 +149,11 @@ class VideoElement extends HTMLElement {
})
.then(res => res.json())
.then((ignored) => {
- console.log({ignored})
this.video.ignored = ignored
this.render()
})
.catch((error) => {
- console.error('Error ignoring summary:', error)
+ console.error('Error ignoring video:', error)
this.render()
})
}