We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e102832 commit c2421b4Copy full SHA for c2421b4
src/base/leaderboard/goto.js
@@ -24,12 +24,8 @@ function load({ page, user } = {}) {
24
}
25
26
function getData() {
27
- const o = {};
28
- const d = decodeURIComponent;
29
- location.search.substring(1).replace(/([^=&]+)=([^&]*)/g, (m, k, v) => {
30
- o[d(k)] = d(v);
31
- });
32
- return o;
+ const params = new URLSearchParams(location.search);
+ return Object.fromEntries(params.entries());
33
34
35
function userLast() {
0 commit comments