mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
More typechecking
This commit is contained in:
@@ -67,7 +67,8 @@ function get_correct_info(song_generated, channel, broadcast, callback) {
|
||||
}
|
||||
|
||||
function check_error_video(msg, channel) {
|
||||
if(!msg.hasOwnProperty("id") || !msg.hasOwnProperty("title")) {
|
||||
if(!msg.hasOwnProperty("id") || !msg.hasOwnProperty("title") ||
|
||||
typeof(msg.id) != "string" || typeof(msg.title) != "string") {
|
||||
socket.emit("update_required");
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user