Closed berkaytheunicorn closed 2 years ago
ok I can just fix the last one with adding and empty function.
I'll have a look at the first two, although some example output from the TV would be great (including what command you ran).
As for the third one it seems I've forgotten a check like if(fn && typeof(fn) === 'function') {fn();}
, I'll have a look.
Ah, yeah, there are a bunch of if (typeof fn === 'function') {
in the code, I'll replace them with the above mentioned so that one can invoke them without defining a callback. I'll open a separate issue for this.
Hey me again :)
I found three issue on this.
first, app names returns with "_default" at the end so before open one we need to remove "_default" from name.
second, some inputs could be listed as apps like "HDMI 1" but their ids is integer like "81273" and these won't open.
and last I got this but events works like I can open live tv or spotify but still get this.