mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-03-22 12:44:43 +00:00
cleanup a not-so-great rebase
This commit is contained in:
@@ -250,9 +250,10 @@ pub fn pageNavigate(bc: anytype, event: *const Notification.PageNavigate) !void
|
||||
else => unreachable,
|
||||
},
|
||||
.address_bar => null,
|
||||
.initialFrameNavigation => "initialFrameNavigation",
|
||||
};
|
||||
if (reason_) |reason| {
|
||||
if (reason != .initialFrameNavigation) {
|
||||
if (event.opts.reason != .initialFrameNavigation) {
|
||||
try cdp.sendEvent("Page.frameScheduledNavigation", .{
|
||||
.frameId = frame_id,
|
||||
.delay = 0,
|
||||
@@ -346,6 +347,7 @@ pub fn pageNavigated(arena: Allocator, bc: anytype, event: *const Notification.P
|
||||
else => unreachable,
|
||||
},
|
||||
.address_bar => null,
|
||||
.initialFrameNavigation => "initialFrameNavigation",
|
||||
};
|
||||
|
||||
if (reason_ != null) {
|
||||
|
||||
Reference in New Issue
Block a user