title: navigator.app.exitApp(); results in "TypeError: Cannot call method 'exitApp' of undefined"
body: <p>Cordova 2.0.0</p>
  
  <p>The following API call doesn't work on Chrome browser, as expected;</p>
  
  <pre><code>navigator.app.exitApp();
  </code></pre>
  
  <p>I'm getting </p>
  
  <blockquote>
    <p>TypeError: Cannot call method 'exitApp' of undefined</p>
  </blockquote>
  
  <p>My code is simply including the <code>cordova-2.2.0.js</code> file. No further actions taken regarding PhoneGap.</p>
  
  <p><strong>On the mobile device this API call does work</strong>.</p>
  
  <p>So I'm guessing there's an additional step I should take in order to abstract this sort of API functions??? Maybe some sort of "require" call?</p>
  
  <p><strong>Edit #1:</strong><br/>
  I think it wasn't clear enough: I was hoping that Cordova would <strong>abstract</strong> this sort of API so that even if not really available (i.e not under a real device but under Chrome instead), these calls would do nothing (especially <code>exitApp</code>).</p>
  
  <p>In addition - I can see <code>navigator</code> object in Chrome inspection, which is of type <code>CordovaNavigator</code>.</p>