rename ACPL chart to avoid adblock filter

pull/3338/merge
Thibault Duplessis 2017-07-24 10:22:35 +02:00
parent c375f24164
commit 7ceecea9e1
3 changed files with 2 additions and 2 deletions

View File

@ -10,7 +10,7 @@ net {
ip = "5.196.91.160"
asset {
domain = ${net.domain}
version = 1799
version = 1803
}
email = "contact@lichess.org"
crawlable = false

View File

@ -104,7 +104,7 @@ module.exports = function(element, cfg) {
var $panel = $panels.filter('.computer_analysis');
if (!$("#adv_chart").length) $panel.html('<div id="adv_chart"></div>' + (loading ? chartLoader() : ''));
else if (loading && !$("#adv_chart_loader").length) $panel.append(chartLoader());
lichess.loadScript('/assets/javascripts/chart/advantage.js').then(function() {
lichess.loadScript('/assets/javascripts/chart/acpl.js').then(function() {
lichess.advantageChart(data);
});
};