Widget: DataExporter: Difference between revisions
From LINKS Community Center
Eschmidt (talk | contribs) No edit summary |
Eschmidt (talk | contribs) No edit summary |
||
Line 13: | Line 13: | ||
async function exportData() { | async function exportData() { | ||
const | const usrData = await fetch(usr).then(rsp => rsp.json()); | ||
console.log( | console.log(usrData) | ||
document.getElementById('output').innerText = JSON.stringify( | document.getElementById('output').innerText = JSON.stringify(usrData,2); | ||
} | } | ||
</script> | </script> |