A clean and minimal youtube frontend, without all the ads and whistles
JavaScript
chore: cleanup
Christian Fei8026b7b65a71
diff --git a/client/lib/router.js b/client/lib/router.jsindex 7be8ace..b8fa00f 100644--- a/client/lib/router.js+++ b/client/lib/router.js@@ -12,9 +12,7 @@ const routes = {document.querySelector('search-videos #search').removeAttribute('disabled', 'disabled')document.querySelector('search-videos').classList.remove('hide')- if (document.querySelector('search-videos')) {- document.querySelector('search-videos').searchHandler()- }+ document.querySelector('search-videos').searchHandler()const channels = await fetch('/api/channels').then(res => res.json())document.querySelector('channels-list').dataset.list = JSON.stringify(channels.map(c => c.name).filter(Boolean))