Commit 0c45fd55 authored by taco@waag.org's avatar taco@waag.org
Browse files

cleanup

parent d4884694
......@@ -36,26 +36,26 @@
<script type="text/javascript">
document.getElementById('start-popup').onclick = () => {
//1. normalize using pop library function
let normalized_text = pop_normalize(document.getElementById("message").value);
document.getElementById("message").value = normalized_text;
//2. sign the normalized text
pop_sign("https://irma.snotolf.waag.org",
"pbdf.sidn-pbdf.email.email",
normalized_text)
.then( result =>{
//3. show the result
document.getElementById("result").value = result;
}).catch(error => {
if (error === 'Aborted') {
console.log('We closed it ourselves, so no problem 😅');
return;
}
console.error("Couldn't do what you asked 😢", error);
})
document.getElementById('start-popup').onclick = () => {
//1. normalize using pop library function
let normalized_text = pop_normalize(document.getElementById("message").value);
document.getElementById("message").value = normalized_text;
//2. sign the normalized text using specified server and attribute
pop_sign("https://irma.snotolf.waag.org",
"pbdf.sidn-pbdf.email.email",
normalized_text)
.then( result => {
//3. show the result
document.getElementById("result").value = result;
}).catch(error => {
if (error === 'Aborted') {
console.log('We closed it ourselves, so no problem 😅');
return;
}
console.error("Couldn't do what you asked 😢", error);
});
};
</script>
</html>
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment