A clean and minimal youtube frontend, without all the ads and whistles
JavaScript
chore: cleanup search-videos
Christian Feib21df6ee50c9
diff --git a/client/components/search-videos.js b/client/components/search-videos.jsindex 49fd799..798f0e0 100644--- a/client/components/search-videos.js+++ b/client/components/search-videos.js@@ -114,12 +114,8 @@ class SearchVideos extends HTMLElement {videos.forEach(video =>$videosContainer.appendChild(createVideoElement(video, showOriginalThumbnail)))- if (!searchTerm) {- $status.innerText = ''- } else {- if (videos.length > 0) $status.innerText = `Found ${videos.length} videos`- else $status.innerText = 'No videos found'- }+ 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)