[matrix] Fix JS errors on search results page

This commit is contained in:
Josh
2020-08-30 16:55:53 +10:00
committed by GitHub
parent 512d9aaccb
commit 3b90e2e74e
2 changed files with 5 additions and 2 deletions

View File

@ -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');