gitlab-org--gitlab-foss/app/assets/javascripts/usage_ping.js
2017-07-06 10:10:03 -05:00

12 lines
240 B
JavaScript

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