From 7670cc6e342231e1f14fd6aa1ff908ced28dbfa7 Mon Sep 17 00:00:00 2001 From: Sebastian <96229720+basti4557@users.noreply.github.com> Date: Thu, 5 Oct 2023 09:54:26 +0200 Subject: [PATCH] PR Comment from mcm1957 --- main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.js b/main.js index cf99108..eed50dd 100644 --- a/main.js +++ b/main.js @@ -586,7 +586,7 @@ function checkCurApp(powerOff){ adapter.setStateChanged('states.currentApp', curApp, true); const inp = curApp.split('.').pop(); - if (inp.indexOf('hdmi') == 0){ + if (inp && (inp.indexOf('hdmi') == 0){ adapter.setStateChanged('states.input', 'HDMI_' + inp[4], true); adapter.setStateChanged('states.launch', '', true); } else {