|
|
@ -142,15 +142,13 @@ function handleQueryParamNavigation() {
|
|
|
|
const urlParams = new URLSearchParams(window.location.search)
|
|
|
|
const urlParams = new URLSearchParams(window.location.search)
|
|
|
|
if (urlParams.size === 0) return
|
|
|
|
if (urlParams.size === 0) return
|
|
|
|
|
|
|
|
|
|
|
|
const matches: HTMLElement[] = []
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for (const [groupKey, tabValue] of urlParams.entries()) {
|
|
|
|
for (const [groupKey, tabValue] of urlParams.entries()) {
|
|
|
|
const groups = getCodeGroupsByKey(groupKey)
|
|
|
|
const groups = getCodeGroupsByKey(groupKey)
|
|
|
|
|
|
|
|
|
|
|
|
for (const group of groups) {
|
|
|
|
for (const group of groups) {
|
|
|
|
const input = findTabByTitle(group, tabValue)
|
|
|
|
const input = findTabByTitle(group, tabValue)
|
|
|
|
if (input && activateTab(group, input)) {
|
|
|
|
if (input) {
|
|
|
|
matches.push(group)
|
|
|
|
activateTab(group, input)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|