mirror of
https://github.com/zhom/donutbrowser.git
synced 2026-07-17 09:57:26 +02:00
refactor: pass custom executable path
This commit is contained in:
@@ -243,6 +243,16 @@ program
|
||||
",",
|
||||
) as "UBO"[];
|
||||
|
||||
// Executable path: forward through to camoufox-js and ultimately Playwright
|
||||
if (
|
||||
options.executablePath &&
|
||||
typeof options.executablePath === "string"
|
||||
) {
|
||||
// camoufox-js uses snake_case for this option
|
||||
(camoufoxOptions as any).executable_path =
|
||||
options.executablePath as string;
|
||||
}
|
||||
|
||||
// Screen and window
|
||||
const screen: {
|
||||
minWidth?: number;
|
||||
|
||||
Reference in New Issue
Block a user