title: localStorage setItem doesn't work on ipad
body: <p>In my hydbrid app (Phonegap), I am trying to write to localStorage in a very standard way :</p>
  
  <pre><code>window.localStorage.setItem("proDB", JSON.stringify(data));
  </code></pre>
  
  <p>or</p>
  
  <pre><code>window.localStorage["proDB"] = JSON.stringify(data);
  </code></pre>
  
  <p>But it doesn't work on Safari on iPad 2 (iOS 7.1).</p>
  
  <p>It doesn't work and the whole app stops.</p>
  
  <p>Here's the userAgent of this ipad : <img src="https://i.stack.imgur.com/5Eajt.png" alt="enter image description here"></p>
  
  <p>Can you help me ?</p>
  
  <p>Thanks</p>