deemix lib update + prevent log data to reach frontend

This commit is contained in:
RemixDev
2021-06-01 20:26:28 +02:00
parent 3facae6955
commit ffedd67a11
7 changed files with 38 additions and 31 deletions

View File

@@ -25,7 +25,9 @@ plugins.spotify.setup()
export const listener = {
send(key: string, data?: any) {
console.log(key, data)
if (data) console.log(key, data)
else console.log(key)
if (["downloadInfo", "downloadWarn"].includes(key)) return
wss.clients.forEach(client => {
if (client.readyState === WebSocket.OPEN) {
client.send(JSON.stringify({ key, data }))