Skip to content

armgit / my-yt

Public Imported from GitHub
0

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

JavaScript

fix: sse-connection remove connected class

Christian Fei26fb42c05745
diff --git a/client/components/sse-connection.js b/client/components/sse-connection.js
index a6a67ad..5f45ad4 100644
--- a/client/components/sse-connection.js
+++ b/client/components/sse-connection.js
@@ -14,6 +14,7 @@ class SSEConnection extends HTMLElement {
render (connected = false) {
if (connected) this.classList.add('connected')
+ else this.classList.remove('connected')
console.log('SSE Connection: ', window.eventSource)
this.innerHTML = /* html */''
}