Skip to content

Commit fc59a0f

Browse files
committed
cdp: send empty param instead of void
Sending void parameters generated unmarshal errors with chromedp client. Empty struct is required.
1 parent 3fb1677 commit fc59a0f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cdp/page.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ fn navigate(
329329

330330
// Send Runtime.executionContextsCleared event
331331
// TODO: noop event, we have no env context at this point, is it necesarry?
332-
try sendEvent(alloc, ctx, "Runtime.executionContextsCleared", void, {}, input.sessionId);
332+
try sendEvent(alloc, ctx, "Runtime.executionContextsCleared", struct {}, .{}, input.sessionId);
333333

334334
// Launch navigate, the page must have been created by a
335335
// target.createTarget.

0 commit comments

Comments
 (0)