From f900f8800d446d6ad954df7718b5dfaa52b71fcc Mon Sep 17 00:00:00 2001 From: John Paul Rutigliano Date: Sat, 26 Nov 2022 23:29:41 -0500 Subject: [PATCH] fix broken js media query --- public/ts/list_search.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/public/ts/list_search.ts b/public/ts/list_search.ts index d0e9be3..fb993f3 100644 --- a/public/ts/list_search.ts +++ b/public/ts/list_search.ts @@ -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(