diff options
author | Mike Greiling <mike@pixelcog.com> | 2017-07-01 02:12:24 +0300 |
---|---|---|
committer | Mike Greiling <mike@pixelcog.com> | 2017-07-06 18:10:03 +0300 |
commit | 12efe4946f342216c411f070a3aa1420073a3e20 (patch) | |
tree | 33f85a71216991fd8dc323d8fe430b2922959b07 /app/assets/javascripts/usage_ping.js | |
parent | d30e66c9a88af6735fcce837ca701096e9582942 (diff) |
refactor UsagePing class to ES module syntax
Diffstat (limited to 'app/assets/javascripts/usage_ping.js')
-rw-r--r-- | app/assets/javascripts/usage_ping.js | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/app/assets/javascripts/usage_ping.js b/app/assets/javascripts/usage_ping.js index fd3af7d7ab6..2389056bd02 100644 --- a/app/assets/javascripts/usage_ping.js +++ b/app/assets/javascripts/usage_ping.js @@ -1,4 +1,4 @@ -function UsagePing() { +export default function UsagePing() { const usageDataUrl = $('.usage-data').data('endpoint'); $.ajax({ @@ -10,6 +10,3 @@ function UsagePing() { }, }); } - -window.gl = window.gl || {}; -window.gl.UsagePing = UsagePing; |