Commit 8a2d536a authored by Rémy Coutable's avatar Rémy Coutable

Fix vendor/peek.js so that it can be bundled with Webpack

Signed-off-by: default avatarRémy Coutable <remy@rymai.me>
parent b173ae6b
...@@ -104,7 +104,6 @@ module Gitlab ...@@ -104,7 +104,6 @@ module Gitlab
config.assets.precompile << "mailers/*.css" config.assets.precompile << "mailers/*.css"
config.assets.precompile << "katex.css" config.assets.precompile << "katex.css"
config.assets.precompile << "katex.js" config.assets.precompile << "katex.js"
config.assets.precompile << "peek.js"
config.assets.precompile << "xterm/xterm.css" config.assets.precompile << "xterm/xterm.css"
config.assets.precompile << "peek.css" config.assets.precompile << "peek.css"
config.assets.precompile << "lib/ace.js" config.assets.precompile << "lib/ace.js"
......
...@@ -9,8 +9,8 @@ ...@@ -9,8 +9,8 @@
updatePerformanceBar = function(results) { updatePerformanceBar = function(results) {
var key, label, data, table, html, tr, duration_td, sql_td, strong; var key, label, data, table, html, tr, duration_td, sql_td, strong;
Object.keys(results.data).forEach((key) => { Object.keys(results.data).forEach(function(key) {
Object.keys(results.data[key]).forEach((label) => { Object.keys(results.data[key]).forEach(function(label) {
data = results.data[key][label]; data = results.data[key][label];
if (label == 'queries') { if (label == 'queries') {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment