mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-03-22 04:34:44 +00:00
cdp.lp: use page.document instead of window._document
This commit is contained in:
@@ -43,7 +43,7 @@ fn getMarkdown(cmd: anytype) !void {
|
||||
const dom_node = if (params.nodeId) |nodeId|
|
||||
(bc.node_registry.lookup_by_id.get(nodeId) orelse return error.InvalidNodeId).dom
|
||||
else
|
||||
page.window._document.asNode();
|
||||
page.document.asNode();
|
||||
|
||||
var aw = std.Io.Writer.Allocating.init(cmd.arena);
|
||||
defer aw.deinit();
|
||||
|
||||
Reference in New Issue
Block a user