diff options
author | Costa Tsaousis (ktsaou) <costa@tsaousis.gr> | 2017-04-02 21:52:46 +0300 |
---|---|---|
committer | Costa Tsaousis (ktsaou) <costa@tsaousis.gr> | 2017-04-02 21:52:46 +0300 |
commit | 0fa54a088b160d4d17348c3cacbbd90f36ecb346 (patch) | |
tree | e418763fd8ac49048101de0c1876b757cea0e905 /web | |
parent | 625fc25efbfb17720c1f9981a55fced9d23c15d8 (diff) |
prevent "too much recursion" errors on firefox
Diffstat (limited to 'web')
-rw-r--r-- | web/dashboard.js | 8 | ||||
-rw-r--r-- | web/index.html | 2 |
2 files changed, 6 insertions, 4 deletions
diff --git a/web/dashboard.js b/web/dashboard.js index b34accdecb..0b4082e13d 100644 --- a/web/dashboard.js +++ b/web/dashboard.js @@ -3710,9 +3710,11 @@ var NETDATA = window.NETDATA || {}; if(NETDATA.options.debug.main_loop === true) console.log('fast rendering...'); - state.autoRefresh(function() { - NETDATA.chartRefresherNoParallel(++index); - }); + setTimeout(function() { + state.autoRefresh(function () { + NETDATA.chartRefresherNoParallel(++index); + }); + }, 0); } else { if(NETDATA.options.debug.main_loop === true) console.log('waiting for next refresh...'); diff --git a/web/index.html b/web/index.html index e845be1a56..87da399ea1 100644 --- a/web/index.html +++ b/web/index.html @@ -3523,4 +3523,4 @@ </div> </body> </html> -<script type="text/javascript" src="dashboard.js?v20170325-1"></script> +<script type="text/javascript" src="dashboard.js?v20170402-1"></script> |