File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -65,11 +65,10 @@ export const buildGlobalDriversObject = async (
6565 routed && ( await routed . verifyConnectivity ( ) )
6666 routingSupported = true
6767 } catch ( e ) {
68- if ( e && isBrowserError ( e ) && isNonSupportedRoutingSchemeError ( e ) ) {
69- routingSupported = false
70- }
71-
72- if ( isError ( e ) ) {
68+ if ( e && isError ( e ) ) {
69+ if ( isBrowserError ( e ) && isNonSupportedRoutingSchemeError ( e ) ) {
70+ routingSupported = false
71+ }
7372 failFn ( e )
7473 }
7574 }
Original file line number Diff line number Diff line change @@ -5,5 +5,5 @@ export function isError(error: unknown): error is Error {
55}
66
77export function isBrowserError ( error : unknown ) : error is BrowserError {
8- return error instanceof Error && 'code' in error && 'message' in error
8+ return error instanceof Error && 'code' in error
99}
You can’t perform that action at this time.
0 commit comments