Unify browser bridge request normalization
This commit is contained in:
@@ -117,11 +117,7 @@ func runNativeMessage() error {
|
||||
}
|
||||
|
||||
func dialBridge(ctx context.Context, req browserbridge.Request) (*grpc.ClientConn, *browserbridge.GRPCClient, context.Context, error) {
|
||||
connCfg, err := req.Connection()
|
||||
if err != nil {
|
||||
return nil, nil, nil, err
|
||||
}
|
||||
return browserbridge.Dial(ctx, connCfg)
|
||||
return browserbridge.DialRequest(ctx, req)
|
||||
}
|
||||
|
||||
func defaultBinaryPath() (string, error) {
|
||||
|
||||
Reference in New Issue
Block a user