From ccb0a08a9b15276b22f9c44f323b578c47be63d2 Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade Date: Mon, 27 Nov 2023 12:54:50 -0700 Subject: [PATCH] Select "Windows" tab instad of "Windows using MSYS2/MinGW" MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Ondrej Baranovič --- docs/resources/js/activate_tab.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/resources/js/activate_tab.js b/docs/resources/js/activate_tab.js index 789052a02..c31c788b8 100644 --- a/docs/resources/js/activate_tab.js +++ b/docs/resources/js/activate_tab.js @@ -27,7 +27,7 @@ function activateTab(tabName) { const labels = document.querySelectorAll(".tab-label"); labels.forEach((label) => { - if (label.textContent.includes(tabName)) { + if (label.textContent == tabName) { // Find the associated input element using the 'for' attribute const tabInputId = label.getAttribute("for"); const tabInput = document.getElementById(tabInputId);