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 res = await fetch(usr); | const res = await fetch(usr).then(rsp => rsp.json()); | ||
console.log(res) | console.log(res) | ||
document.getElementById('output').innerText = JSON.stringify(res); | document.getElementById('output').innerText = JSON.stringify(res); |