Skip to content

Commit c70b313

Browse files
Update script.js
Silence missing search form warning Signed-off-by: Lissan <150966211+DataForSolution@users.noreply.github.com>
1 parent d74dd5d commit c70b313

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

assets/js/script.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ function initializeSearchFeature() {
6262
const searchForm = document.getElementById('menu-search-form');
6363
const searchInput = document.getElementById('menu-search-input');
6464

65-
if (!searchForm || !searchInput) return console.error("Search form or input element not found.");
65+
if (!searchForm || !searchInput) return;
6666

6767
searchForm.addEventListener('submit', function(event) {
6868
event.preventDefault();

0 commit comments

Comments
 (0)