ischrome

This property is a boolean value indicating if the app is currently running in the Chrome browser

intel.xdk.ischrome

Example:


document.addEventListener("intel.xdk.device.ready",onDeviceReady,false);

function onDeviceReady(evt)
{
  if (intel.xdk.ischrome==true)
  {
    // Application is running in Chrome browser
    console.log("Running in Chrome");   
  }
}
                          
Pour de plus amples informations sur les optimisations de compilation, consultez notre Avertissement concernant les optimisations.