gitlab-org--gitlab-foss/app/assets/javascripts/usage_ping.js

16 lines
288 B
JavaScript
Raw Normal View History

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