I have a sencha html 5 app
sometimes my app runs as a pure html 5 app via web browser and sometimes it runs compiled with cordova as a native app.
I want my JS code (which si the exact same code in both permutations) to be able to differentiate between the 2 modes. what's the best practice for this? I am looking for something like:
(is app native) ? get some resource : get other resource
thanks in advance.