mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-12-14 23:38:57 +00:00
cdp: return valid url and title for getTargets
This commit is contained in:
@@ -71,8 +71,8 @@ fn getTargets(cmd: anytype) !void {
|
|||||||
.targetInfos = [_]TargetInfo{.{
|
.targetInfos = [_]TargetInfo{.{
|
||||||
.targetId = target_id,
|
.targetId = target_id,
|
||||||
.type = "page",
|
.type = "page",
|
||||||
.title = "",
|
.title = bc.getTitle() orelse "about:blank",
|
||||||
.url = "",
|
.url = bc.getURL() orelse "about:blank",
|
||||||
.attached = true,
|
.attached = true,
|
||||||
.canAccessOpener = false,
|
.canAccessOpener = false,
|
||||||
}},
|
}},
|
||||||
|
|||||||
Reference in New Issue
Block a user