diff options
author | Lukas Eipert <leipert@gitlab.com> | 2019-07-04 13:36:49 +0200 |
---|---|---|
committer | Lukas Eipert <leipert@gitlab.com> | 2019-07-05 16:37:39 +0200 |
commit | 7ca77203c0622697123e2fdb6f377d87e3de901b (patch) | |
tree | 73b4ae76d125135e0cbca3eb521a7b2f3e15d391 /app/assets/javascripts/lib/utils/common_utils.js | |
parent | de6c2f7033e7d856be092e3bca4cfe7a33141733 (diff) | |
download | gitlab-ce-7ca77203c0622697123e2fdb6f377d87e3de901b.tar.gz |
Replace runtime isEE check with compile time one60213-fix-is-ee-webpack-checks
This has the benefit that CE bundles will remove dead code in CE only
builds.
We have a follow-up issue to get rid of this completely:
https://gitlab.com/gitlab-org/gitlab-ce/issues/64173
Diffstat (limited to 'app/assets/javascripts/lib/utils/common_utils.js')
-rw-r--r-- | app/assets/javascripts/lib/utils/common_utils.js | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/app/assets/javascripts/lib/utils/common_utils.js b/app/assets/javascripts/lib/utils/common_utils.js index cc5e12aa467..5e90893b684 100644 --- a/app/assets/javascripts/lib/utils/common_utils.js +++ b/app/assets/javascripts/lib/utils/common_utils.js @@ -727,14 +727,6 @@ export const NavigationType = { }; /** - * Returns the value of `gon.ee` - * Used to check if it's the EE codebase or the CE one. - * - * @returns Boolean - */ -export const isEE = () => window.gon && window.gon.ee; - -/** * Checks if the given Label has a special syntax `::` in * it's title. * |