mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-12-14 15:28:57 +00:00
Merge pull request #1222 from lightpanda-io/cdp-multi-attachtotarget
cdp: accept multiple attachToTarget calls
This commit is contained in:
@@ -201,12 +201,10 @@ fn attachToTarget(cmd: anytype) !void {
|
||||
return error.UnknownTargetId;
|
||||
}
|
||||
|
||||
if (bc.session_id != null) {
|
||||
return error.SessionAlreadyLoaded;
|
||||
if (bc.session_id == null) {
|
||||
try doAttachtoTarget(cmd, target_id);
|
||||
}
|
||||
|
||||
try doAttachtoTarget(cmd, target_id);
|
||||
|
||||
return cmd.sendResult(
|
||||
.{ .sessionId = bc.session_id },
|
||||
.{ .include_session_id = false },
|
||||
|
||||
Reference in New Issue
Block a user