Skip to content

Commit

Permalink
Fix "all" to remove the URL parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
kojiishi committed Feb 14, 2024
1 parent dba9cd9 commit d109d3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion script.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ function switchLang (lang) {
const url = new URL(document.location);
const params = url.searchParams;
if (lang == 'all')
params.delete('lang', lang);
params.delete('lang');
else
params.set('lang', lang);
history.replaceState(null, null, url.toString());
Expand Down

0 comments on commit d109d3c

Please sign in to comment.