Skip to content

Commit 05ccfa9

Browse files
committed
fix: 持续修复mac和linux版本无法读取到内置浏览器的BUG
1 parent 8133ce2 commit 05ccfa9

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/common/src/utils/valid.browser.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export function getValidBrowsers(): ValidBrowser[] {
1111
return [
1212
{
1313
name: '软件内置浏览器-谷歌(Chrome)',
14-
path: resolveBrowserPath('bin\\chrome\\chrome\\chrome.exe')
14+
path: resolveBrowserPath('bin\\chrome\\chrome\\Google Chrome for Testing')
1515
}
1616
].filter((b) => b.path) as ValidBrowser[];
1717
}
@@ -35,7 +35,7 @@ export function getValidBrowsers(): ValidBrowser[] {
3535
return [
3636
{
3737
name: '软件内置浏览器-谷歌(Chrome)',
38-
path: resolveBrowserPath('bin\\chrome\\chrome\\chrome.exe')
38+
path: resolveBrowserPath('bin\\chrome\\chrome\\Google Chrome for Testing')
3939
}
4040
].filter((b) => b.path) as ValidBrowser[];
4141
}

0 commit comments

Comments
 (0)