From bb66d5771a6082e86df13cc1977e9592cb12b099 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc?= <1536036+zoic21@users.noreply.github.com> Date: Tue, 20 Feb 2024 13:16:49 +0100 Subject: [PATCH] Update z2m.js --- desktop/js/z2m.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/desktop/js/z2m.js b/desktop/js/z2m.js index f375d8c..f02006c 100644 --- a/desktop/js/z2m.js +++ b/desktop/js/z2m.js @@ -17,6 +17,9 @@ $('#bt_includeDeviceByCode').off('click').on('click',function(){ bootbox.prompt("{{Code ?}}", function(code){ + if(code == null){ + return; + } jeedom.z2m.bridge.addByCode({ code : code, error: function (error) { @@ -250,4 +253,4 @@ $.ajax({ window.location.reload(); } }); -} \ No newline at end of file +}