File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77 UnionedIncomingMessages ,
88 VALID_INCOMING_EVENTS ,
99} from "./messaging/incoming" ;
10- import { info , warn } from "./utils/logging" ;
10+ import { warn } from "./utils/logging" ;
1111import { autoLogin } from "./utils/login" ;
1212import { sendMessageToTestBox } from "./messaging" ;
1313import { INITIALIZE_ACK , LOGIN_ACK , NAVIGATE_ACK } from "./messaging/outgoing" ;
@@ -42,10 +42,14 @@ export function routeMessage(
4242 case LOGIN :
4343 loggingIn = true ;
4444 sendMessageToTestBox ( LOGIN_ACK ) ;
45- autoLogin ( data , router ) . then ( ( nextUrl : string ) => {
45+ autoLogin ( data , router ) . then ( ( nextUrl : string | boolean ) => {
4646 loggingIn = false ;
4747 const goTo = navigateUrl || nextUrl ;
48- if ( goTo && goTo !== window . location . href ) {
48+ if (
49+ goTo &&
50+ typeof goTo == "string" &&
51+ goTo !== window . location . href
52+ ) {
4953 const func = router [ "navigate" ] ;
5054 if ( func ) {
5155 func ( { url : goTo } ) ;
You can’t perform that action at this time.
0 commit comments