From f0aa616444173ea109dbad375e1f8c050cfd7f6f Mon Sep 17 00:00:00 2001 From: Rhiannon Morris Date: Wed, 8 Jun 2022 14:37:02 +0200 Subject: [PATCH] filter box closed for example tags --- script/gallery.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/gallery.js b/script/gallery.js index afa1c01..8d106f3 100644 --- a/script/gallery.js +++ b/script/gallery.js @@ -107,7 +107,7 @@ function useFragment() { let re = /^(require|exclude)_|hide_filters/; if (Array.from(set).every(x => re.test(x))) { allBoxes.forEach(b => b.checked = set.has(b.id)); - details.open = !set.has('hide_filters'); + details.open = !frag.match(/hide_filters|example\b/); } }