How to conditionally check current TV platform?

Hello,

I was wondering what the easiest way is to conditionally check what TV platform the app is currently running on? For example, if I wanted to use an endpoint that is specific to the TV (tizen, webOS, etc.), how can I conditionally check that?

Thanks!

You’ll have to do a check on app startup…

if (window.webOS)

if (window.tizen)

Each platform will add some sort of global to the window object that you can check for.

Chris