diff --git a/app/src/lib/graph-interface/graph/colors.ts b/app/src/lib/graph-interface/graph/colors.ts index eb20ed4..993efcf 100644 --- a/app/src/lib/graph-interface/graph/colors.ts +++ b/app/src/lib/graph-interface/graph/colors.ts @@ -29,13 +29,16 @@ function updateColors() { lastStyle = hash; } -updateColors(); - export const colors = readable(store, set => { updateColors(); set(store); + setTimeout(() => { + updateColors(); + set(store); + }, 1000); + window.onload = function () { updateColors(); set(store) }; document.body.addEventListener("transitionstart", () => {