I have an iPhone Web App, and I\'m interested in detecting if the app was loaded either from:
Can be simplified to var webApp = window.navigator.standalone || false;
var webApp = window.navigator.standalone || false;
Can be simplified again to var webApp = window.navigator.standalone;
var webApp = window.navigator.standalone;