mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Forgot length of element
This commit is contained in:
@@ -295,8 +295,8 @@ function getSessionAdminUser(id, list, callback) {
|
||||
var adminpass = "";
|
||||
if(d.length > 0) {
|
||||
console.log(d);
|
||||
if(d.hasOwnProperty("chromecast") && d.chromecast) {
|
||||
getSessionAdminUser(d.id, list, callback);
|
||||
if(d[0].hasOwnProperty("chromecast") && d[0].chromecast) {
|
||||
getSessionAdminUser(d[0].id, list, callback);
|
||||
} else {
|
||||
if(d[0].userpass != undefined) userpass = d[0].userpass;
|
||||
if(d[0].adminpass != undefined) adminpass = d[0].adminpass;
|
||||
|
||||
Reference in New Issue
Block a user