mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-10-02 15:53:11 -05:00
Remove Google Analytics ugly URLs
Google Analytics adds weird things to the URL when linking cross- domain. This removes them after loading for less ugliness.
This commit is contained in:
@@ -802,6 +802,9 @@
|
||||
// Just open the main menu.
|
||||
fragment = '';
|
||||
}
|
||||
if (location.search && window.history) {
|
||||
history.replaceState(null, null, '/');
|
||||
}
|
||||
fragment = toRoomid(fragment || '');
|
||||
if (this.initialFragment === undefined) this.initialFragment = fragment;
|
||||
this.tryJoinRoom(fragment);
|
||||
|
||||
Reference in New Issue
Block a user