Skip to content

Commit

Permalink
Update debugger.html.eex
Browse files Browse the repository at this point in the history
  • Loading branch information
osbre authored Jun 4, 2024
1 parent 1169d97 commit f296c79
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/plug/templates/debugger.html.eex
Original file line number Diff line number Diff line change
Expand Up @@ -865,13 +865,13 @@
}
function toggleOnclick () {
localStorage.setItem('plugStackTrace', this.checked ? 'checked' : '');
if (this.checked) {
localStorage.setItem('plugStackTrace', 'checked');
var $first = document.querySelector('[role~="stack-trace-item"].-app:first-of-type')
if ($first) itemOnclick.call($first)
removeClass($list, '-show-all')
} else {
localStorage.setItem('plugStackTrace', '');
addClass($list, '-show-all')
}
}
Expand Down

0 comments on commit f296c79

Please sign in to comment.