mirror of
https://github.com/Rapptz/discord.py.git
synced 2026-11-20 13:29:03 +00:00
[matrix] Fix JS errors on search results page
This commit is contained in:
1 parent
15587eeef1
commit
2ad87dbff6
2 files changed
+5
-2
No files matched your search
Vendored
+3
@@ -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