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 f691526 commit 8f26e89
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 @@ -76,7 +76,7 @@
document.getElementById('searchForUser').addEventListener('submit', function(event) {
event.preventDefault(); // Prevent the default form submission which causes page reload
const query = document.getElementById('searchUser').value;
fetch(`/search?query=${encodeURIComponent(query)}`)
fetch(`/search?query=${query}`)
.then(response => response.json())
.then(data => {
displayResults(data);
Expand Down

0 comments on commit 8f26e89

Please sign in to comment.