From ba31d4f4c9453c00516d753004c2232812add945 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Tue, 24 Dec 2019 14:00:06 +0100 Subject: [PATCH] Fixed parameter access --- .../http/static/js/plugins/camera.android.ipcam/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/platypush/backend/http/static/js/plugins/camera.android.ipcam/index.js b/platypush/backend/http/static/js/plugins/camera.android.ipcam/index.js index 30695cd7..05d72558 100644 --- a/platypush/backend/http/static/js/plugins/camera.android.ipcam/index.js +++ b/platypush/backend/http/static/js/plugins/camera.android.ipcam/index.js @@ -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); } }