mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-02-04 06:23:45 +00:00
re-enable minimum viable CDP server
This commit is contained in:
@@ -143,13 +143,14 @@ fn createTarget(cmd: anytype) !void {
|
||||
|
||||
bc.target_id = target_id;
|
||||
|
||||
var page = try bc.session.createPage();
|
||||
const page = try bc.session.createPage();
|
||||
{
|
||||
const aux_data = try std.fmt.allocPrint(cmd.arena, "{{\"isDefault\":true,\"type\":\"default\",\"frameId\":\"{s}\"}}", .{target_id});
|
||||
bc.inspector.contextCreated(
|
||||
page.js,
|
||||
"",
|
||||
try page.origin(cmd.arena),
|
||||
"", // @ZIGDOM
|
||||
// try page.origin(arena),
|
||||
aux_data,
|
||||
true,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user