Skip to content

Commit

Permalink
parse data in visualization async
Browse files Browse the repository at this point in the history
  • Loading branch information
hfxbse committed May 4, 2024
1 parent 312a319 commit 55b1acf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/visualization/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ customElements.define('material-icon', MaterialIcon)
customElements.define('user-count', UserCount)


window.addEventListener("DOMContentLoaded", () => {
window.addEventListener("DOMContentLoaded", async () => {
const data = decodeURIComponent(atob("REPLACE-ME-WITH-USER-GRAPH"))
const graph: UserGraph = JSON.parse(data)
const users = Object.values(graph)
Expand Down

0 comments on commit 55b1acf

Please sign in to comment.