Skip to content

Commit

Permalink
PR Comment from mcm1957
Browse files Browse the repository at this point in the history
  • Loading branch information
basti4557 authored Oct 5, 2023
1 parent e82e245 commit 7670cc6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 7670cc6

Please sign in to comment.