lib/logster/middleware/viewer.rb in logster-2.16.0 vs lib/logster/middleware/viewer.rb in logster-2.17.0

- old
+ new

@@ -333,9 +333,15 @@ gems_dir = Logster.config.gems_dir gems_dir += "/" if gems_dir[-1] != "/" preload.merge!(gems_dir: gems_dir, backtrace_links_enabled: backtrace_links_enabled) preload.merge!(preload_backtrace_data) if backtrace_links_enabled + if Logster.config.back_to_site_link_text && Logster.config.back_to_site_link_path + preload.merge!( + back_to_site_link_text: Logster.config.back_to_site_link_text, + back_to_site_link_path: Logster.config.back_to_site_link_path, + ) + end preload end def body(preload = {}) preload = preloaded_data.merge(preload)