Fixed parameter access

This commit is contained in:
Fabio Manganiello 2019-12-24 14:00:06 +01:00
parent 2edb3f0944
commit ba31d4f4c9
1 changed files with 3 additions and 3 deletions

View File

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