A clean and minimal youtube frontend, without all the ads and whistles
JavaScript
no await ignore video
Christian Fei4b2848254c90
diff --git a/client/components/video-element.js b/client/components/video-element.jsindex fc044b1..7698b82 100644--- a/client/components/video-element.js+++ b/client/components/video-element.js@@ -132,10 +132,10 @@ class VideoElement extends HTMLElement {`}}- async ignoreVideoHandler (event) {+ ignoreVideoHandler (event) {event.preventDefault()- await fetch('/ignore-video', {+ fetch('/ignore-video', {method: 'POST',headers: { 'Content-Type': 'application/json' },body: JSON.stringify({ id: this.video.id }),