mirror of
https://github.com/jlengrand/bugsink.git
synced 2026-03-10 08:01:17 +00:00
Show/hide stack frames
This commit is contained in:
13
static/js/issue.js
Normal file
13
static/js/issue.js
Normal file
@@ -0,0 +1,13 @@
|
||||
"use strict";
|
||||
|
||||
function toggleFrameVisibility(frameHeader) {
|
||||
const frameDetails = frameHeader.parentNode.querySelector(".js-frame-details");
|
||||
console.log("FD", frameDetails);
|
||||
if (frameDetails.classList.contains("hidden")) {
|
||||
frameDetails.classList.remove("hidden");
|
||||
frameDetails.classList.add("xl:flex"); // add back
|
||||
} else {
|
||||
frameDetails.classList.add("hidden");
|
||||
frameDetails.classList.remove("xl:flex"); // this appears to be necessary, not sure why
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user