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 Fei7a95d9c720dc
diff --git a/client/main.js b/client/main.js
index c332f86..1ff277f 100644
--- a/client/main.js
+++ b/client/main.js
@@ -22,7 +22,7 @@ window.eventSource.onmessage = (message) => {
window.state.sseConnected = true
if (!message || !message.data) return console.error('skipping empty message')
try {
- const data = JSON.parse(message.data, {})
+ const data = JSON.parse(message.data)
console.log('[sse] message', data)
if (data.type === 'state' && data.state) {