diff options
Diffstat (limited to 'client/tables.js')
| -rw-r--r-- | client/tables.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/client/tables.js b/client/tables.js index a30abc32..b2b3d39c 100644 --- a/client/tables.js +++ b/client/tables.js @@ -57,6 +57,7 @@ export default function append(el, payload) { const citations = getCitations(data) console.log(citations) table.setData(citations) + el.classList.add('loaded') } else { fetch(payload.url, { mode: 'cors' }) .then(r => r.text()) @@ -65,6 +66,7 @@ export default function append(el, payload) { const data = csv.toJSON(text, { headers: { included: true } }) // console.log(data) table.setData(data) + el.classList.add('loaded') } catch (e) { console.error("error parsing json:", payload.url) console.error(e) |
