Update browser demo

This commit is contained in:
Yarmo Mackenbach 2020-12-11 11:00:12 +01:00
parent 69df55d014
commit 4657ad3956

View file

@ -55,16 +55,16 @@
</div>
</body>
<script src="../dist/doip.min.js" charset="utf-8"></script>
<script src="https://cdn.jsdelivr.net/npm/openpgp/dist/openpgp.min.js"></script>
<script src="../dist/doip.js" charset="utf-8"></script>
<script type="text/javascript" charset="utf-8">
window.addEventListener('load', async () => {
const claims = document.querySelectorAll('#claims > div')
claims.forEach(async (item, i) => {
claimInput = item.querySelector('.claim_input').textContent
item.querySelector('.claim_output').textContent = JSON.stringify(
await doip.verify(claimInput, null, {
await doip.claims.verify(claimInput, null, {
returnMatchesOnly: true,
xmppVcardServerDomain: 'vcard.server.org',
}),
null,
2