mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-12-08 20:48:48 +00:00
Trying some more fixes for the unknown error for .id undefined
This commit is contained in:
@@ -57,6 +57,7 @@ var Crypt = {
|
||||
},
|
||||
|
||||
decrypt_pass: function(pass) {
|
||||
if(socket) {
|
||||
var key = btoa(socket.id) + btoa(socket.id);
|
||||
key = key.substring(0,32);
|
||||
key = btoa(key);
|
||||
@@ -68,6 +69,7 @@ var Crypt = {
|
||||
}
|
||||
);
|
||||
return decrypted.toString(CryptoJS.enc.Utf8);
|
||||
} return false;
|
||||
},
|
||||
|
||||
encrypt: function(json_formated, cookie) {
|
||||
|
||||
@@ -186,7 +186,7 @@ var Frontpage = {
|
||||
|
||||
add_backdrop: function(list, i) {
|
||||
if(i >= list.length || i >= 20) i = 0;
|
||||
|
||||
if(list[i] == undefined) return;
|
||||
var id = list[i].id;
|
||||
if(Frontpage.blob_list[i] !== undefined){
|
||||
//$(".room-namer").css("opacity", 0);
|
||||
|
||||
@@ -241,6 +241,7 @@ var List = {
|
||||
|
||||
check_error_videos: function(i) {
|
||||
//Helper.log("Empty-checker at " + i);
|
||||
if(full_playlist.length == 0) return;
|
||||
$.getJSON('https://www.googleapis.com/youtube/v3/videos?id=' + full_playlist[i].id
|
||||
+ "&key=" + api_key + "&part=snippet",
|
||||
function (data, status, xhr) {
|
||||
|
||||
Reference in New Issue
Block a user