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

13 lines
240 B
JavaScript
Raw Normal View History

export default function UsagePing() {
2017-04-17 11:40:34 -04:00
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);
},
});
}