Skip to content

armgit / my-yt

Public Imported from GitHub
0

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

JavaScript

chore: cleanup

Christian Fei7b21392832bb
diff --git a/client/main.js b/client/main.js
index f7439a0..345fd78 100644
--- a/client/main.js
+++ b/client/main.js
@@ -1,7 +1,10 @@
import Store from '/lib/store.js'
import { createVideoElement } from '/lib/utils.js'
const store = new Store()
-window.state = {}
+window.state = {
+ downloading: {},
+ summarizing: {}
+}
const eventSource = new EventSource('/')
eventSource.onmessage = (message) => {
@@ -48,7 +51,6 @@ eventSource.onmessage = (message) => {
$downloadLogLines.scrollTop = $downloadLogLines.scrollHeight
return
}
-
if (data.type === 'new-videos' && data.videos) {
const $videosContainer = document.querySelector('.main-videos-container')
if (!$videosContainer) return