Skip to content

armgit / my-yt

Public Imported from GitHub
0

A clean and minimal youtube frontend, without all the ads and whistles

JavaScript

cleanup

Christian Fei217d0d26e736
diff --git a/client/main.js b/client/main.js
index c557ffc..67dbbc3 100644
--- a/client/main.js
+++ b/client/main.js
@@ -27,9 +27,7 @@ eventSource.onmessage = (message) => {
$videosContainer.innerHTML = ''
const allVideos = Object.entries(data.videos).reduce((acc, curr) => acc.concat(curr[1]), [])
allVideos
- .filter(video => {
- return !window.store.includes(window.store.ignoreVideoKey, video.id)
- })
+ .filter(video => !window.store.includes(window.store.ignoreVideoKey, video.id))
.sort((a, b) => +new Date(b.publishedAt) - +new Date(a.publishedAt))
.forEach(video => {
$videosContainer.appendChild(createVideoElement(video))