Difference between revisions of "Widget:DataExporter"
From LINKS Community Center
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); |