diff --git a/Gemfile.lock b/Gemfile.lock index 6f3893d1874..af0b76daa17 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -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) diff --git a/app/assets/javascripts/discourse/routes/discourse.js.es6 b/app/assets/javascripts/discourse/routes/discourse.js.es6 index 94633e1bc32..5576fb422ca 100644 --- a/app/assets/javascripts/discourse/routes/discourse.js.es6 +++ b/app/assets/javascripts/discourse/routes/discourse.js.es6 @@ -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');