From 5dd38ac3859ae3e666760a351c9ab7b0f1a7246d Mon Sep 17 00:00:00 2001 From: Gcaufy Date: Sun, 1 Dec 2019 14:39:07 +0800 Subject: [PATCH] fix: fixed show all frame MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 当 active frame 是 native frame 时, 再关闭 show all frame 时, 并未重置 active frame. --- lib/onerror_page.mustache | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/lib/onerror_page.mustache b/lib/onerror_page.mustache index cd520b9..cf636f8 100644 --- a/lib/onerror_page.mustache +++ b/lib/onerror_page.mustache @@ -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 () { @@ -751,4 +758,4 @@ Prism.languages.typescript=Prism.languages.extend("javascript",{keyword:/\b(as|a - \ No newline at end of file +