Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Greiling <mike@pixelcog.com>2017-07-01 02:12:24 +0300
committerMike Greiling <mike@pixelcog.com>2017-07-06 18:10:03 +0300
commit12efe4946f342216c411f070a3aa1420073a3e20 (patch)
tree33f85a71216991fd8dc323d8fe430b2922959b07 /app/assets/javascripts/usage_ping.js
parentd30e66c9a88af6735fcce837ca701096e9582942 (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.js5
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;