title: Persistent storage API
body: <p><a href="https://developers.google.com/web/updates/2016/06/persistent-storage" rel="nofollow noreferrer">This</a> article gives this code snippet on how to create local storage which is persistent.</p>
  
  <pre><code>if (navigator.storage &amp;&amp; navigator.storage.persist) 
    navigator.storage.persisted().then(persistent=&gt;{
      if (persistent)
        console.log("Storage will not be cleared except by explicit user action");
      else
        console.log("Storage may be cleared by the UA under storage pressure.");
    });
  </code></pre>
  
  <p>But it doesn't explain much. For example  what is <code>navigator</code>?
  Where can I find more details about this API?
  Can I use it with indexedDB?</p>