HD-23 Perform a check if the redirect address is set to desktop before authing emergency login
This commit is contained in:
parent
fe001a716a
commit
e98372d785
|
@ -316,7 +316,11 @@ class WelcomePage extends Component<IWelcomeProps, IWelcomeState> {
|
|||
}
|
||||
|
||||
authorizeEmergencyLogin() {
|
||||
window.location.href = `${this.state.defaultRedirectAddress}/?code=${this.state.authCode}#/`;
|
||||
let redirAddress =
|
||||
this.state.defaultRedirectAddress === "desktop"
|
||||
? "hyperspace://hyperspace/app"
|
||||
: this.state.defaultRedirectAddress;
|
||||
window.location.href = `${redirAddress}/?code=${this.state.authCode}#/`;
|
||||
}
|
||||
|
||||
resumeLogin() {
|
||||
|
|
Loading…
Reference in New Issue