From: Alexander Moisseev Date: Tue, 14 Feb 2017 14:54:31 +0000 (+0300) Subject: [WebUI] Fix compatibility with non-ES6 compliant browsers X-Git-Tag: 1.5.0~102^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=71d95e627a19bf9385fc565a2b6c1c159e7f9ad3;p=rspamd.git [WebUI] Fix compatibility with non-ES6 compliant browsers --- diff --git a/interface/js/app/graph.js b/interface/js/app/graph.js index 3b2c2be35..62452d367 100644 --- a/interface/js/app/graph.js +++ b/interface/js/app/graph.js @@ -180,7 +180,7 @@ function($, D3Evolution, unused) { if (checked_server === "All SERVERS") { rspamd.queryNeighbours("graph", function (req_data) { - let neighbours_data = req_data + var neighbours_data = req_data .filter(function (d) { return d.status }) // filter out unavailable neighbours .map(function (d){ return d.data; }) @@ -194,7 +194,7 @@ function($, D3Evolution, unused) { return; } - let data = []; + var data = []; curr.forEach(function (action, j) { data.push( action.map(function (d, i) {