Correct Javascript syntax

This commit is contained in:
Christoph Stahl 2023-05-23 14:32:30 +02:00
parent f5f768f728
commit 536d8b4e20

View file

@ -198,10 +198,11 @@ function registerSocketEvents() {
})
state.socket.on("err", (response) => {
console.log(response)
switch(response.type) {
"QUEUE_FULL":
case "QUEUE_FULL":
var prefix = "The song queue is full and ends at ";
date = new Date(response.end_time * 1000).toLocaleTimeString;
var date = new Date(response.end_time * 1000).toLocaleString();
state.value.last_msg = prefix + date;
break;
default: