A clean and minimal youtube frontend, without all the ads and whistles
JavaScript
ui: show videos found info only during search
Christianbe695461264c
diff --git a/client/components/search-videos.js b/client/components/search-videos.jsindex 062102d..dc716f2 100644--- a/client/components/search-videos.js+++ b/client/components/search-videos.js@@ -129,8 +129,10 @@ class SearchVideos extends HTMLElement {videos.forEach(video =>$videosContainer.appendChild(createVideoElement(video, showOriginalThumbnail)))- if (videos.length > 0) $status.innerText = `Found ${videos.length} video${videos.length === 1 ? '' : 's'}`- else $status.innerText = 'No videos found'+ if (event) {+ if (videos.length > 0) $status.innerText = `Found ${videos.length} video${videos.length === 1 ? '' : 's'}`+ else $status.innerText = 'No videos found'+ }}).catch(err => {console.error(err)