mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-03-22 04:34:44 +00:00
Fcdp: fix attachtToTarget and attachToBrowserTarget resp
This commit is contained in:
@@ -247,10 +247,7 @@ fn attachToTarget(cmd: anytype) !void {
|
||||
|
||||
try doAttachtoTarget(cmd, target_id);
|
||||
|
||||
return cmd.sendResult(
|
||||
.{ .sessionId = bc.session_id },
|
||||
.{},
|
||||
);
|
||||
return cmd.sendResult(.{ .sessionId = bc.session_id }, .{});
|
||||
}
|
||||
|
||||
fn attachToBrowserTarget(cmd: anytype) !void {
|
||||
@@ -272,7 +269,7 @@ fn attachToBrowserTarget(cmd: anytype) !void {
|
||||
|
||||
bc.session_id = session_id;
|
||||
|
||||
return cmd.sendResult(null, .{});
|
||||
return cmd.sendResult(.{ .sessionId = bc.session_id }, .{});
|
||||
}
|
||||
|
||||
fn closeTarget(cmd: anytype) !void {
|
||||
|
||||
Reference in New Issue
Block a user