1
0
Fork 0

Show horizontal divider in error pages

master
David Walsh 2020-02-07 12:12:13 -06:00 committed by Sawyer Blatz
parent 316215ca54
commit 5c79483c7e
1 changed files with 2 additions and 2 deletions

View File

@ -59,10 +59,10 @@ function toggleAdvancedAndScroll() {
const badCertAdvancedPanel = document.getElementById("badCertAdvancedPanel");
// We know that the button is being displayed
if (badCertAdvancedPanel.classList.has("hidden")) {
if (badCertAdvancedPanel.style.display === "block") {
horizontalLine.classList.remove("hidden");
advancedPanelAcceptButton.scrollIntoView({behavior: "smooth", block: "center", inline: "nearest"});
} else if (badCertAdvancedPanel.classList.has("hidden")) {
} else {
horizontalLine.classList.add("hidden");
}
}