Skip to content

Commit

Permalink
Update currentSearch when submitting form
Browse files Browse the repository at this point in the history
  • Loading branch information
BrandonXLF committed Apr 26, 2024
1 parent 1c6fb84 commit 67475c1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion static/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ function submitForm(pushState) {
.join('&');

if (pushState) {
history.pushState({}, null, (query ? '?' : '') + query);
currentSearch = (query ? '?' : '') + query;
history.pushState({}, null, currentSearch);
}

if (!query) {
Expand Down

0 comments on commit 67475c1

Please sign in to comment.