From 9d7256b441b4bc3becd90de663df887db7614186 Mon Sep 17 00:00:00 2001 From: Robin Daugherty Date: Wed, 4 Nov 2020 18:09:04 -0500 Subject: [PATCH] Fix "live shell" hint reappearing when frame changed --- lib/better_errors/templates/main.erb | 42 ++++++++++++------- lib/better_errors/templates/variable_info.erb | 2 +- 2 files changed, 29 insertions(+), 15 deletions(-) diff --git a/lib/better_errors/templates/main.erb b/lib/better_errors/templates/main.erb index 5da0c530..c282c29f 100644 --- a/lib/better_errors/templates/main.erb +++ b/lib/better_errors/templates/main.erb @@ -595,6 +595,9 @@ color: #8080a0; padding-left: 20px; } + .console-has-been-used .live-console-hint { + display: none; + } .hint:before { content: '\25b2'; @@ -817,6 +820,28 @@ return html.replace(/&/, "&").replace(/ <% if BetterErrors.binding_of_caller_available? && @frame.frame_binding %> -
+
This is a live shell. Type in here.