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