Skip to content

Commit

Permalink
Add search for user #11
Browse files Browse the repository at this point in the history
  • Loading branch information
Scobiform committed Apr 19, 2024
1 parent 8b40686 commit f691526
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@


document.getElementById('searchForUser').addEventListener('submit', function(event) {
event.preventDefault();
event.preventDefault(); // Prevent the default form submission which causes page reload
const query = document.getElementById('searchUser').value;
fetch(`/search?query=${encodeURIComponent(query)}`)
.then(response => response.json())
Expand Down

0 comments on commit f691526

Please sign in to comment.