Update sessionManager.mjs

This commit is contained in:
被遗忘的记忆
2025-03-10 00:34:10 +08:00
committed by GitHub
parent b9bf36b0ad
commit 08e6a04d5a
+1 -1
View File
@@ -149,7 +149,7 @@ class SessionManager {
async initBrowserInstancesInBatch() {
const browserCount = parseInt(process.env.BROWSER_INSTANCE_COUNT) || 1;
// 可以是 'chrome', 'edge', 或 'auto'
const browserPath = detectBrowser('auto');
const browserPath = detectBrowser(process.env.BROWSER_TYPE || 'auto');
const sharedProfilePath = path.join(__dirname, 'browser_profiles');
createDirectoryIfNotExists(sharedProfilePath);