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