prevent "too much recursion" errors on firefox
Costa Tsaousis (ktsaou) committed
Apr 2, 2017 at 21:52 UTC
0fa54a088b160d4d17348c3cacbbd90f36ecb346
2 files changed
+6
-4
web/dashboard.js
+5
-3
@@ -3710,9 +3710,11 @@ var NETDATA = window.NETDATA || {};
3710
if(NETDATA.options.debug.main_loop === true)
3711
console.log('fast rendering...');
3712
3713
- state.autoRefresh(function() {
3714
- NETDATA.chartRefresherNoParallel(++index);
3715
- });
3713
+ setTimeout(function() {
3714
+ state.autoRefresh(function () {
3715
+ NETDATA.chartRefresherNoParallel(++index);
3716
+ });
3717
+ }, 0);
3718
}
3719
else {
3720
if(NETDATA.options.debug.main_loop === true) console.log('waiting for next refresh...');
web/index.html
+1
-1
@@ -3523,4 +3523,4 @@
3523
</div>
3524
</body>
3525
</html>
3526
-<script type="text/javascript" src="dashboard.js?v20170325-1"></script>
3526
+<script type="text/javascript" src="dashboard.js?v20170402-1"></script>