diff options
Diffstat (limited to 'client/tables.js')
| -rw-r--r-- | client/tables.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/client/tables.js b/client/tables.js index a30abc32..2a2699f9 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,8 +66,9 @@ 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("error making json:", payload.url) console.error(e) // console.log(text) } |
