mirror of
https://github.com/tiennm99/ccs.git
synced 2026-10-13 22:15:33 +00:00
Merge remote-tracking branch 'origin/dev' into kai/fix/980-ci-and-prepush
This commit is contained in:
commit
4525df2c1b
5 files changed
+74
-13
No files matched your search
@@ -49,18 +49,7 @@ export function resolveDefaultChromeUserDataDir(
|
||||
}
|
||||
|
||||
export function resolveConfiguredBrowserProfileDir(profileDir?: string): string | undefined {
|
||||
if (profileDir?.trim()) {
|
||||
return expandPath(profileDir);
|
||||
}
|
||||
|
||||
try {
|
||||
const defaultUserDataDir = resolveDefaultChromeUserDataDir();
|
||||
return fs.existsSync(path.join(defaultUserDataDir, DEVTOOLS_ACTIVE_PORT_FILE))
|
||||
? defaultUserDataDir
|
||||
: undefined;
|
||||
} catch {
|
||||
return undefined;
|
||||
}
|
||||
return profileDir?.trim() ? expandPath(profileDir) : undefined;
|
||||
}
|
||||
|
||||
export async function resolveBrowserRuntimeEnv(
|
||||
|
||||
Reference in new issue
Block a user