A clean and minimal youtube frontend, without all the ads and whistles
JavaScript
fix: optional channelName when filtering
Christian Fei5b4a9ff424d4
diff --git a/lib/repository.js b/lib/repository.jsindex 7ff17ef..4468f6b 100644--- a/lib/repository.js+++ b/lib/repository.js@@ -97,7 +97,7 @@ export default class Repository {})} else {videos = videos.filter(v => {- return v.channelName.toLowerCase().includes(searchTerm) ||+ return v.channelName?.toLowerCase().includes(searchTerm) ||v.title?.toLowerCase().includes(searchTerm) ||v.description?.toLowerCase().includes(searchTerm)})