tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

passwordcredential-get.html (388B)


      1 <script>
      2  navigator.credentials.get({ 'password': true })
      3    .then(c => {
      4      window.parent.postMessage({
      5        "status": "resolved",
      6        "credential": c,
      7        "exception": null
      8      }, "*");
      9    })
     10    .catch(omg => {
     11      window.parent.postMessage({
     12        "status": "rejected",
     13        "credential": null,
     14        "exception": omg.name
     15      }, "*");
     16    });
     17 </script>