summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/usage_ping.js
blob: 4c8ca345778fbd4122c4c0fdef3aa341759a7ea5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
(global => {
  global.gl = global.gl || {};

  gl.UsagePing = function() {
    var usage_data_url = $('.usage-data').data('endpoint');

    $.ajax({
      type: "GET",
      url: usage_data_url,
      dataType: "html",
      success: function (html) {
        $(".usage-data").html(html);
      }
    });
  };
})(window);