Skip to content

Commit

Permalink
Merge pull request #2239 from mireq/main
Browse files Browse the repository at this point in the history
Expand frame working only for first 10 frames
  • Loading branch information
davidism committed Oct 6, 2021
2 parents bf4efb7 + f408b25 commit 41eefbf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGES.rst
Expand Up @@ -37,6 +37,8 @@ Unreleased
- Fix type annotation in ``CallbackDict``, because it is not
utilizing a bound TypeVar. :issue:`2235`
- Fix setting CSP header options on the response. :pr:`2237`
- Fix an issue lines not expanding on click in the interactive
debugger for very long tracebacks. :pr:`2239`


Version 2.0.1
Expand Down
4 changes: 2 additions & 2 deletions src/werkzeug/debug/shared/debugger.js
Expand Up @@ -21,9 +21,9 @@ docReady(() => {
});

function addToggleFrameTraceback(frames) {
frames.forEach((frame, i) => {
frames.forEach((frame) => {
frame.addEventListener("click", () => {
frame.getElementsByTagName("pre")[i].parentElement.classList.toggle("expanded");
frame.getElementsByTagName("pre")[0].parentElement.classList.toggle("expanded");
});
})
}
Expand Down

0 comments on commit 41eefbf

Please sign in to comment.