summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/usage_ping.js
blob: 2389056bd023582aea98ef39f108f91c55792a49 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
export default function UsagePing() {
  const usageDataUrl = $('.usage-data').data('endpoint');

  $.ajax({
    type: 'GET',
    url: usageDataUrl,
    dataType: 'html',
    success(html) {
      $('.usage-data').html(html);
    },
  });
}