mirror of
https://github.com/tiennm99/ccs.git
synced 2026-10-14 16:17:02 +00:00
hotfix: stop auto-enabling stale Chrome DevTools reuse
This commit is contained in:
1 parent
026ff6cedd
commit
5c799e68e9
3 files changed
+67
-12
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