mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-09-06 09:56:09 +00:00
[matrix] Fix JS errors on search results page
This commit is contained in:
4
docs/_static/custom.js
vendored
4
docs/_static/custom.js
vendored
@ -25,7 +25,7 @@ class Modal {
|
||||
}
|
||||
}
|
||||
|
||||
class Search {
|
||||
class SearchBar {
|
||||
|
||||
constructor() {
|
||||
this.box = document.querySelector('nav.mobile-only');
|
||||
@ -50,7 +50,7 @@ class Search {
|
||||
}
|
||||
|
||||
document.addEventListener('DOMContentLoaded', () => {
|
||||
mobileSearch = new Search();
|
||||
mobileSearch = new SearchBar();
|
||||
|
||||
bottomHeightThreshold = document.documentElement.scrollHeight - 30;
|
||||
sections = document.querySelectorAll('section');
|
||||
|
Reference in New Issue
Block a user