From abc2b3f2667c8ad4f7e4621ff253f80708a61a87 Mon Sep 17 00:00:00 2001 From: Patrick Connolly Date: Fri, 8 Nov 2024 23:10:02 -0800 Subject: [PATCH] Oops. Added lint fixes. --- src/js/app.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/js/app.js b/src/js/app.js index 9202d39..3cec84e 100644 --- a/src/js/app.js +++ b/src/js/app.js @@ -42,14 +42,14 @@ if (search) { search.classList.remove('dn') const input = search.querySelector('input') - function setSearchParam(searchParam) { + function setSearchParam (searchParam) { // Update the URL without adding to the search history const newurl = `${window.location.protocol}//${window.location.host}${window.location.pathname}?q=${encodeURIComponent(searchParam)}` - window.history.replaceState({path: newurl}, '', newurl) + window.history.replaceState({ path: newurl }, '', newurl) } // Function to handle search logic - function handleSearch(searchValue) { + function handleSearch (searchValue) { setSearchParam(searchValue) if (searchValue === '') {