Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
alexmatson-da committed Jan 6, 2022
1 parent 98a3f36 commit 2281e0c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/login/DamlHubLogin.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,12 @@ const ButtonLogin: React.FC<DamlHubLoginProps> = props => {
const ledgerId = hubEnv?.ledgerId;

if (tokenFromCookie) {
if (detectAppDomainType() === DomainType.LEGACY_DOMAIN) {
const url = new URL(window.location.toString());
url.search = '';
window.history.replaceState(window.history.state, '', url.toString());
}

try {
const at = new PartyToken(tokenFromCookie);
if (
Expand Down

0 comments on commit 2281e0c

Please sign in to comment.