Skip to content

Commit

Permalink
fix: fixed show all frame (#32)
Browse files Browse the repository at this point in the history
当 active frame 是 native frame 时, 再关闭 show all frame 时, 并未重置 active
frame.

Co-authored-by: fengmk2 <[email protected]>
  • Loading branch information
Gcaufy and fengmk2 authored Oct 13, 2024
1 parent d386c17 commit 779fdfd
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion lib/onerror_page.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -707,6 +707,13 @@ Prism.languages.typescript=Prism.languages.extend("javascript",{keyword:/\b(as|a
$$('.frame-row.native-frame').forEach(function(node) {
node.classList.remove('force-show');
});
var activeFrame = $('.frame-row.active');
if (activeFrame.classList.contains('native-frame')) {
activeFrame.classList.remove('active');
var firstFrame = $$('.frame-row')[0];
firstFrame.classList.add('active');
showFrameContext(firstFrame);
}
}
}
function displayFirstView () {
Expand Down Expand Up @@ -751,4 +758,4 @@ Prism.languages.typescript=Prism.languages.extend("javascript",{keyword:/\b(as|a
</script>
</section>
</body>
</html>
</html>

0 comments on commit 779fdfd

Please sign in to comment.