Commit 2198ea05 authored by Michał Woźniak's avatar Michał Woźniak
Browse files

a small eprformance fix for site removal

parent 7da2135d
Pipeline #213 passed with stage
in 1 second
...@@ -2089,8 +2089,9 @@ document.addEventListener('DOMContentLoaded', (e)=>{ ...@@ -2089,8 +2089,9 @@ document.addEventListener('DOMContentLoaded', (e)=>{
// using History.pushState() because we don't want the onhashchange event to fire // using History.pushState() because we don't want the onhashchange event to fire
updateUrlHash() updateUrlHash()
// update the chart // update the chart settings
updateChartSettings() clearTimeout(theChart.updateTimeout)
theChart.updateTimeout = setTimeout(updateChartSettings, 250)
}) })
clearAllSites.addEventListener('click', (e)=>{ clearAllSites.addEventListener('click', (e)=>{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment