Widget: DataExporter: Difference between revisions

From LINKS Community Center
Jump to: navigation, search
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);

Revision as of 11:00, 15 August 2023