summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRegis <boudinot.regis@yahoo.com>2016-08-10 13:09:29 -0600
committerLuke Bennett <lukeeeebennettplus@gmail.com>2016-08-17 15:41:32 +0100
commit40b0bc55bdd2d353c961c247968c6ef7a1d19b11 (patch)
treed925342ac7c2d91ff974ee97d9472122d1c351b5
parentf05fc0f60ba9b1625577d95dc2340c6398afb0cd (diff)
downloadgitlab-ce-selfup/gitlab-ce-users-es6.tar.gz
putting window logic before IIFEselfup/gitlab-ce-users-es6
-rw-r--r--app/assets/javascripts/user.js.es64
1 files changed, 3 insertions, 1 deletions
diff --git a/app/assets/javascripts/user.js.es6 b/app/assets/javascripts/user.js.es6
index 7e699df84ca..e064853202d 100644
--- a/app/assets/javascripts/user.js.es6
+++ b/app/assets/javascripts/user.js.es6
@@ -1,3 +1,5 @@
+window.gl = window.gl || {};
+
((global) => {
class User {
constructor(opts) {
@@ -26,4 +28,4 @@
}
global.User = User;
-})(window.gl || (window.gl = {})); \ No newline at end of file
+})(window.gl); \ No newline at end of file