Skip to content

Commit 85f52e6

Browse files
committed
fix: leaderboard using querystring in pagename
1 parent 2b4e16d commit 85f52e6

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

src/hooks/leaderboard.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
wrap(() => {
2+
onPage('leaderboard', () => {
3+
eventManager.on(':loaded', () => {
4+
globalSet('pageName', location.pathname.substr(1));
5+
globalSet('action', 'ranked');
6+
});
7+
// TODO: Add other leaderboard hooks here?
8+
});
9+
});

0 commit comments

Comments
 (0)