BetterErrors / better_errors

Better error page for Rack apps
MIT License
6.88k stars 437 forks source link

Hide "live shell" hint after console has been used #490

Closed RobinDaugherty closed 4 years ago

RobinDaugherty commented 4 years ago

This is an implementation of the request in #315, but instead of removing the hint completely, it's shown only when the console has never been used.

The JS on the page sets a cookie when the user types in the console, and hides the hint if that cookie is present. (The cookie will expire after one year.)

2020-11-04 13 48 17

Closes #342 Fixes #315

coveralls commented 4 years ago

Pull Request Test Coverage Report for Build 346125630


Totals Coverage Status
Change from base Build 346059898: -10.8%
Covered Lines: 402
Relevant Lines: 470

💛 - Coveralls
coveralls commented 4 years ago

Pull Request Test Coverage Report for Build 346125630


Totals Coverage Status
Change from base Build 346059898: 0.0%
Covered Lines: 448
Relevant Lines: 465

💛 - Coveralls