Skip to content

Commit

Permalink
Fixed expand frame exception
Browse files Browse the repository at this point in the history
  • Loading branch information
mireq committed Sep 29, 2021
1 parent 366b2d9 commit b0ad69c
Showing 1 changed file with 2 additions and 2 deletions.
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 b0ad69c

Please sign in to comment.