Skip to content

Commit 16c69dd

Browse files
committed
👽 Change class for docs versioning
1 parent 46dfc4c commit 16c69dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/versionList.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ function createDropdown(here) {
2424
function versionDropdown() {
2525
const here = window.location.href;
2626
const dochome = "https://" + here.split('/').slice(2, 5).join('/');
27-
const navTitles = document.getElementsByClassName("nav-item-0");
27+
const navTitles = document.querySelectorAll(".brand,.sidebar-brand-text");
2828
createDropdown(here).then(dropdown => {
2929
for (let item of navTitles) {
3030
let newTitle = document.createElement("div");

0 commit comments

Comments
 (0)