From 008e13a039de2ff39892cc96f1ee212064cdaa05 Mon Sep 17 00:00:00 2001 From: gravel Date: Mon, 25 Dec 2023 09:42:08 +0000 Subject: [PATCH] URL hash starts tag search --- output/main.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/output/main.js b/output/main.js index 9cc1f70..3b5c456 100644 --- a/output/main.js +++ b/output/main.js @@ -97,6 +97,12 @@ function reactToURLParameters() { return; } + if (!hash.includes("+")) { + useSearchTerm(`#${decodeURIComponent(hash)}`, true); + toggleSearchBarVisibility(); + return; + } + const communityIDPrefix = hash; const row = dom.community_row(communityIDPrefix, true); if (row == null || !(row instanceof HTMLTableRowElement)) { @@ -709,8 +715,6 @@ function useSearchTerm(rawTerm, fillSearchBarWithTerm = false) { if (fillSearchBarWithTerm) { searchBar.value = rawTerm; } - - sortTable(); } function replaceRowsWith(rows) {