drats, zig fmt again

This commit is contained in:
Karl Seguin
2025-02-12 18:32:33 +08:00
parent d282055e10
commit 1846d0bc21
2 changed files with 5 additions and 9 deletions

View File

@@ -37,7 +37,6 @@ pub fn processMessage(cmd: anytype) !void {
.performSearch => return performSearch(cmd),
.getSearchResults => return getSearchResults(cmd),
.discardSearchResults => return discardSearchResults(cmd),
}
}
@@ -256,7 +255,5 @@ fn getSearchResults(cmd: anytype) !void {
if (params.fromIndex >= items.len) return error.BadFromIndex;
if (params.toIndex > items.len) return error.BadToIndex;
return cmd.sendResult(.{
.nodeIds = ns.?.coll.items[params.fromIndex..params.toIndex]
}, .{});
return cmd.sendResult(.{ .nodeIds = ns.?.coll.items[params.fromIndex..params.toIndex] }, .{});
}

View File

@@ -265,8 +265,7 @@ fn navigate(cmd: anytype) !void {
try cmd.sendEvent("Page.lifecycleEvent", life_event, .{ .session_id = session_id });
}
try cmd.sendEvent("DOM.documentUpdated", null, .{.session_id = session_id});
try cmd.sendEvent("DOM.documentUpdated", null, .{ .session_id = session_id });
// frameNavigated event
try cmd.sendEvent("Page.frameNavigated", .{