2017-09-10 17:25:29 +05:30
|
|
|
export default function UsagePing() {
|
2017-08-17 22:00:37 +05:30
|
|
|
const usageDataUrl = $('.usage-data').data('endpoint');
|
|
|
|
|
|
|
|
$.ajax({
|
|
|
|
type: 'GET',
|
|
|
|
url: usageDataUrl,
|
|
|
|
dataType: 'html',
|
|
|
|
success(html) {
|
|
|
|
$('.usage-data').html(html);
|
|
|
|
},
|
|
|
|
});
|
|
|
|
}
|