X-Git-Url: https://nos-oignons.net/gitweb/website.git/blobdiff_plain/9355bff4da880bbe76c415c3cf830157b1517172..b4bc57a321ff09d627a481d53354a24cca9db587:/assets/weights_graphs.js diff --git a/assets/weights_graphs.js b/assets/weights_graphs.js index 8116d01..5ed7cb1 100644 --- a/assets/weights_graphs.js +++ b/assets/weights_graphs.js @@ -238,7 +238,8 @@ WeightsDrawer.prototype.update_period = function(period) { WeightsDrawer.prototype.draw = function() { var drawer = this; - d3.json(WeightsDrawer.onionoo_url, function(error, raw_data) { + d3.json(WeightsDrawer.onionoo_url) + .then(function(raw_data) { d3.select(drawer.selector).text(""); drawer.draw_weights_graph(raw_data); });