mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-10-30 15:41:48 +00:00
emit context created on createTarget event for chromedp
This commit is contained in:
@@ -123,6 +123,7 @@ fn createTarget(cmd: anytype) !void {
|
||||
const target_id = cmd.cdp.target_id_gen.next();
|
||||
|
||||
try bc.createIsolatedWorld();
|
||||
bc.target_id = target_id;
|
||||
|
||||
_ = try bc.session.createPage();
|
||||
|
||||
@@ -149,8 +150,6 @@ fn createTarget(cmd: anytype) !void {
|
||||
try doAttachtoTarget(cmd, target_id);
|
||||
}
|
||||
|
||||
bc.target_id = target_id;
|
||||
|
||||
try cmd.sendResult(.{
|
||||
.targetId = target_id,
|
||||
}, .{});
|
||||
|
||||
Reference in New Issue
Block a user