@intuned/runtime-dev 1.3.6-brave.1 → 1.3.6-brave.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -84,9 +84,10 @@ async function launchChromium({
|
|
|
84
84
|
extraArgs.push(`--app=${appModeInitialUrl}`);
|
|
85
85
|
}
|
|
86
86
|
if (executablePath) {
|
|
87
|
+
console.log("Using custom executable path:", executablePath);
|
|
87
88
|
executablePath = await fs.realpath(executablePath);
|
|
88
89
|
if (!(await fs.exists(executablePath))) {
|
|
89
|
-
console.
|
|
90
|
+
console.log(`Warning: Executable path ${executablePath} does not exist. Falling back to default.`);
|
|
90
91
|
executablePath = undefined;
|
|
91
92
|
}
|
|
92
93
|
}
|
|
@@ -290,9 +291,12 @@ async function getRemotePlaywrightContext(cdpAddress) {
|
|
|
290
291
|
}
|
|
291
292
|
async function getExecutablePath() {
|
|
292
293
|
if (process.env.BROWSER_TYPE === "brave") {
|
|
293
|
-
|
|
294
|
+
console.log("Using Brave browser");
|
|
295
|
+
const bravePath = await (0, _which.default)("brave-browser-stable", {
|
|
294
296
|
nothrow: true
|
|
295
|
-
})
|
|
297
|
+
});
|
|
298
|
+
console.log("Brave path:", bravePath);
|
|
299
|
+
return bravePath ?? undefined;
|
|
296
300
|
}
|
|
297
301
|
return undefined;
|
|
298
302
|
}
|