application_settings.js 319 Bytes
Newer Older
Stan Hu's avatar
Stan Hu committed
1

2 3
function ApplicationSettings() {
  const usageDataUrl = $('.usage-data').data('endpoint');
Stan Hu's avatar
Stan Hu committed
4

5 6 7 8 9 10 11 12 13 14 15 16
  $.ajax({
    type: 'GET',
    url: usageDataUrl,
    dataType: 'html',
    success(html) {
      $('.usage-data').html(html);
    },
  });
}

window.gl = window.gl || {};
window.gl.ApplicationSettings = ApplicationSettings;