Skip to content

Commit 2bd9ec1

Browse files
committed
🔧 do not allow useChrome to set falseyexecutablePath #2360
1 parent b62ea0d commit 2bd9ec1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/controllers/browser.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,7 @@ async function initBrowser(sessionId?: string, config:any={}) {
251251
if(!_savedPath) {
252252
const chromeLauncher = await import('chrome-launcher')
253253
config.executablePath = chromeLauncher.Launcher.getInstallations()[0];
254+
if(!config.executablePath) delete config.executablePath;
254255
await storage.setItem('executablePath',config.executablePath)
255256
} else config.executablePath = _savedPath;
256257
}

0 commit comments

Comments
 (0)