FEATURE: upgrade rack-mini-profiler
new version is collapsed so screen does not fill with timings. expands on click
This commit is contained in:
parent
3e018c2588
commit
ce040bfa56
|
@ -232,8 +232,8 @@ GEM
|
|||
puma (2.15.3)
|
||||
r2 (0.2.6)
|
||||
rack (1.6.4)
|
||||
rack-mini-profiler (0.9.8)
|
||||
rack (>= 1.1.3)
|
||||
rack-mini-profiler (0.9.9.1)
|
||||
rack (>= 1.2.0)
|
||||
rack-openid (1.3.1)
|
||||
rack (>= 1.1.0)
|
||||
ruby-openid (>= 2.1.8)
|
||||
|
|
|
@ -75,8 +75,10 @@ const DiscourseRoute = Ember.Route.extend({
|
|||
});
|
||||
|
||||
export function cleanDOM() {
|
||||
// Close mini profiler
|
||||
$('.profiler-results .profiler-result').remove();
|
||||
|
||||
if (window.MiniProfiler) {
|
||||
window.MiniProfiler.pageTransition();
|
||||
}
|
||||
|
||||
// Close some elements that may be open
|
||||
$('header ul.icons li').removeClass('active');
|
||||
|
|
Loading…
Reference in New Issue