Add some optional params in methods

Signed-off-by: Francis Bouvier <francis@lightpanda.io>
This commit is contained in:
Francis Bouvier
2024-04-18 11:57:39 +02:00
parent 1620138421
commit e4ae2df1a4
3 changed files with 26 additions and 3 deletions

View File

@@ -104,6 +104,8 @@ fn addScriptToEvaluateOnNewDocument(
const Params = struct {
source: []const u8,
worldName: ?[]const u8 = null,
includeCommandLineAPI: bool = false,
runImmediately: bool = false,
};
_ = try getParams(alloc, Params, scanner);
const sessionID = try cdp.getSessionID(scanner);