mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-09-07 02:08:25 +00:00
[matrix] Fix JS errors on search results page
This commit is contained in:
3
docs/_static/sidebar.js
vendored
3
docs/_static/sidebar.js
vendored
@ -23,6 +23,9 @@ class Sidebar {
|
||||
|
||||
createCollapsableSections() {
|
||||
let toc = this.element.querySelector('ul');
|
||||
if (!toc) {
|
||||
return
|
||||
}
|
||||
let allReferences = toc.querySelectorAll('a.reference.internal:not([href="#"])');
|
||||
|
||||
for (let ref of allReferences) {
|
||||
|
Reference in New Issue
Block a user