Skip to content

Commit

Permalink
fix broken js media query
Browse files Browse the repository at this point in the history
  • Loading branch information
John-Paul-R committed Nov 27, 2022
1 parent 728b010 commit f900f88
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion public/ts/list_search.ts
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,9 @@ function cycleListViewModes() {
updateViewModes();
}

window.matchMedia("@media only screen and (max-width: 1000px)").onchange = updateViewModes;
window.matchMedia("only screen and (max-width: 1000px)").onchange = () => {
updateViewModes();
}

executeIfWhenDOMContentLoaded(() => {
getElementById("list_view_cycle_button").addEventListener(
Expand Down

0 comments on commit f900f88

Please sign in to comment.