diff options
Diffstat (limited to 'app/assets/javascripts/main.js')
-rw-r--r-- | app/assets/javascripts/main.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/app/assets/javascripts/main.js b/app/assets/javascripts/main.js index 88ddd12594e..5c14000a2aa 100644 --- a/app/assets/javascripts/main.js +++ b/app/assets/javascripts/main.js @@ -46,6 +46,9 @@ applyGitLabUIConfig(); window.jQuery = jQuery; window.$ = jQuery; +// ensure that window.gl is set up +window.gl = window.gl || {}; + // inject test utilities if necessary if (process.env.NODE_ENV !== 'production' && gon?.test_env) { import(/* webpackMode: "eager" */ './test_utils/'); |