forked from Mirrors/doipjs
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>
|
</div>
|
||||||
</body>
|
</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">
|
<script type="text/javascript" charset="utf-8">
|
||||||
window.addEventListener('load', async () => {
|
window.addEventListener('load', async () => {
|
||||||
const claims = document.querySelectorAll('#claims > div')
|
const claims = document.querySelectorAll('#claims > div')
|
||||||
claims.forEach(async (item, i) => {
|
claims.forEach(async (item, i) => {
|
||||||
claimInput = item.querySelector('.claim_input').textContent
|
claimInput = item.querySelector('.claim_input').textContent
|
||||||
item.querySelector('.claim_output').textContent = JSON.stringify(
|
item.querySelector('.claim_output').textContent = JSON.stringify(
|
||||||
await doip.verify(claimInput, null, {
|
await doip.claims.verify(claimInput, null, {
|
||||||
returnMatchesOnly: true,
|
returnMatchesOnly: true,
|
||||||
xmppVcardServerDomain: 'vcard.server.org',
|
|
||||||
}),
|
}),
|
||||||
null,
|
null,
|
||||||
2
|
2
|
||||||
|
|
Loading…
Reference in a new issue