mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-10-30 07:31:47 +00:00
Add some optional params in methods
Signed-off-by: Francis Bouvier <francis@lightpanda.io>
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user