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/notes/index.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/notes/index.js')
-rw-r--r-- | app/assets/javascripts/notes/index.js | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/app/assets/javascripts/notes/index.js b/app/assets/javascripts/notes/index.js index 57dd1c5cab2..c70c0e4095c 100644 --- a/app/assets/javascripts/notes/index.js +++ b/app/assets/javascripts/notes/index.js @@ -1,5 +1,4 @@ import Vue from 'vue'; -import { isEE } from '~/lib/utils/common_utils'; import initNoteStats from 'ee_else_ce/event_tracking/notes'; import notesApp from './components/notes_app.vue'; import initDiscussionFilters from './discussion_filters'; @@ -41,9 +40,7 @@ document.addEventListener('DOMContentLoaded', () => { }; }, mounted() { - if (isEE) { - initNoteStats(); - } + initNoteStats(); }, render(createElement) { return createElement('notes-app', { |