summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2017-06-08 10:39:32 +0200
committerRémy Coutable <remy@rymai.me>2017-06-09 17:21:39 +0200
commit8a2d536ac3178c18a08cc107453c23c459b2cef4 (patch)
treec54b3c7e82145e418065e3f784a80195dd4a037f
parentb173ae6b48323b22f5650e97cd797fa9c49e6cd8 (diff)
downloadgitlab-ce-8a2d536ac3178c18a08cc107453c23c459b2cef4.tar.gz
Fix vendor/peek.js so that it can be bundled with Webpack
Signed-off-by: Rémy Coutable <remy@rymai.me>
-rw-r--r--config/application.rb1
-rw-r--r--vendor/assets/javascripts/peek.js4
2 files changed, 2 insertions, 3 deletions
diff --git a/config/application.rb b/config/application.rb
index 31f975d538b..8bbecf3ed0f 100644
--- a/config/application.rb
+++ b/config/application.rb
@@ -104,7 +104,6 @@ module Gitlab
config.assets.precompile << "mailers/*.css"
config.assets.precompile << "katex.css"
config.assets.precompile << "katex.js"
- config.assets.precompile << "peek.js"
config.assets.precompile << "xterm/xterm.css"
config.assets.precompile << "peek.css"
config.assets.precompile << "lib/ace.js"
diff --git a/vendor/assets/javascripts/peek.js b/vendor/assets/javascripts/peek.js
index 427a8a3efad..f7e77de34ff 100644
--- a/vendor/assets/javascripts/peek.js
+++ b/vendor/assets/javascripts/peek.js
@@ -9,8 +9,8 @@
updatePerformanceBar = function(results) {
var key, label, data, table, html, tr, duration_td, sql_td, strong;
- Object.keys(results.data).forEach((key) => {
- Object.keys(results.data[key]).forEach((label) => {
+ Object.keys(results.data).forEach(function(key) {
+ Object.keys(results.data[key]).forEach(function(label) {
data = results.data[key][label];
if (label == 'queries') {