gitlab-org--gitlab-foss/app/assets/javascripts/usage_ping.js
2017-04-17 16:40:34 +01:00

15 lines
288 B
JavaScript

function UsagePing() {
const usageDataUrl = $('.usage-data').data('endpoint');
$.ajax({
type: 'GET',
url: usageDataUrl,
dataType: 'html',
success(html) {
$('.usage-data').html(html);
},
});
}
window.gl = window.gl || {};
window.gl.UsagePing = UsagePing;