Forgot to added type

This commit is contained in:
Kasper Rynning-Tønnesen
2016-11-18 20:44:01 +01:00
parent 4c90e62569
commit 4eaedfe621
2 changed files with 2 additions and 2 deletions

View File

@@ -315,7 +315,7 @@ function hide_native(way){
function chromecastListener(evt, data){
console.log(data);
var json_parsed = JSON.parse(data);
switch(json_parsed){
switch(json_parsed.type){
case -1:
socket.emit("end", {id: json_parsed.videoId, channel: chan.toLowerCase()});
break;