Toxblh / samsung-tv-control

📺 Remote control your TV via JS!
https://toxblh.github.io/samsung-tv-control/
MIT License
177 stars 34 forks source link

fix: uncaught exception for openApp when app not installed #302

Closed AlfieBrooks closed 8 months ago

AlfieBrooks commented 8 months ago

When using the openApp function and the app passed isn't installed on the device, it throws an error but as it's thrown in the callback it causes an uncaughtException no matter what, with no way of catching it apart from at the process level

This PR changes that so it no longer throws the error, but passes it in the callback instead

Toxblh commented 8 months ago

Thank you for your contribution!