Fixed parameter access

This commit is contained in:
Fabio Manganiello 2019-12-24 14:00:06 +01:00
parent 2edb3f0944
commit ba31d4f4c9

View file

@ -86,9 +86,9 @@ Vue.component('camera-android-ipcam', {
cam[attr] = cam[attr].replace('https://', 'http://'); cam[attr] = cam[attr].replace('https://', 'http://');
} }
if (cam[name] in this.config && this.config[cam[name]].username) { if (cam.name in this.config.cameras && this.config.cameras[cam.name].username) {
cam[attr] = 'http://' + this.config[cam[name]].username + ':' + cam[attr] = 'http://' + this.config.cameras[cam.name].username + ':' +
this.config[cam[name]].password + cam[attr].substr(7); this.config.cameras[cam.name].password + cam[attr].substr(7);
} }
} }