mirror of
https://codeberg.org/keyoxide/doipjs.git
synced 2024-12-22 22:49:28 -07:00
Update browser demo
This commit is contained in:
parent
69df55d014
commit
4657ad3956
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue