mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-10-29 15:13:28 +00:00
Wrap getDocument response in a root object
This commit is contained in:
@@ -51,7 +51,7 @@ fn getDocument(cmd: anytype) !void {
|
|||||||
const doc = page.doc orelse return error.DocumentNotLoaded;
|
const doc = page.doc orelse return error.DocumentNotLoaded;
|
||||||
|
|
||||||
const node = try bc.node_registry.register(parser.documentToNode(doc));
|
const node = try bc.node_registry.register(parser.documentToNode(doc));
|
||||||
return cmd.sendResult(bc.nodeWriter(node, .{}), .{});
|
return cmd.sendResult(.{ .root = bc.nodeWriter(node, .{}) }, .{});
|
||||||
}
|
}
|
||||||
|
|
||||||
// https://chromedevtools.github.io/devtools-protocol/tot/DOM/#method-performSearch
|
// https://chromedevtools.github.io/devtools-protocol/tot/DOM/#method-performSearch
|
||||||
|
|||||||
Reference in New Issue
Block a user