(search) Fix script loading for mobile support

This commit is contained in:
Viktor Lofgren 2023-11-28 14:08:18 +01:00
parent 280132dad0
commit 38d20022ad

View File

@ -2,7 +2,7 @@ document.getElementsByTagName('body')[0].setAttribute('data-has-js', 'true');
// Add a button to open the filters for mobile; we do this in js to not pollute the DOM for text-only browsers
const button = document.createElement('button');
button.setAttribute('id', 'mcfest');
button.setAttribute('id', 'mcfeast');
button.setAttribute('aria-controls', '#filters');
button.onclick = (event) => {
setDisplay(document.getElementById('filters'), 'block');