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 (
65
65
routed && ( await routed . verifyConnectivity ( ) )
66
66
routingSupported = true
67
67
} 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
+ }
73
72
failFn ( e )
74
73
}
75
74
}
Original file line number Diff line number Diff line change @@ -5,5 +5,5 @@ export function isError(error: unknown): error is Error {
5
5
}
6
6
7
7
export 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
9
9
}
You can’t perform that action at this time.
0 commit comments