]> source.dussan.org Git - rspamd.git/commitdiff
[WebUI] Fix compatibility with non-ES6 compliant browsers 1426/head
authorAlexander Moisseev <moiseev@mezonplus.ru>
Tue, 14 Feb 2017 14:54:31 +0000 (17:54 +0300)
committerAlexander Moisseev <moiseev@mezonplus.ru>
Tue, 14 Feb 2017 14:54:31 +0000 (17:54 +0300)
interface/js/app/graph.js

index 3b2c2be35e224cbf9319c9e58f57a06b83f869e8..62452d36768814c6e5cde0b5660598ff86a2d9b7 100644 (file)
@@ -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) {