From 87ae6f0631fc9bae79ac57b0a70dcc19a3dd80b6 Mon Sep 17 00:00:00 2001 From: John Bowdre Date: Wed, 17 Jul 2024 20:47:27 -0500 Subject: [PATCH] fix search (variable conflict with recentfm) --- assets/js/search.js | 4 ++-- layouts/partials/aside.html | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/assets/js/search.js b/assets/js/search.js index d2cf0ad..cbcce7c 100644 --- a/assets/js/search.js +++ b/assets/js/search.js @@ -16,8 +16,8 @@ function displayResults (results, store) { searchResults.innerHTML = 'No results found.'; } } -const params = new URLSearchParams(window.location.search); -const query = params.get('query'); +const searchParams = new URLSearchParams(window.location.search); +const query = searchParams.get('query'); if (query) { document.getElementById('search-query').setAttribute('value', query); const idx = lunr(function () { diff --git a/layouts/partials/aside.html b/layouts/partials/aside.html index 42e32dc..47f88bc 100644 --- a/layouts/partials/aside.html +++ b/layouts/partials/aside.html @@ -55,6 +55,6 @@

status.lol


-

recent track

+

latest track