Skip to content

Commit

Permalink
Fixed expand frame exception
Browse files Browse the repository at this point in the history
  • Loading branch information
mireq authored and davidism committed Oct 6, 2021
1 parent bf4efb7 commit f408b25
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 f408b25

Please sign in to comment.