Skip to content

Commit

Permalink
fix(app): 修复浏览器报错BUG
Browse files Browse the repository at this point in the history
  • Loading branch information
enncy committed May 20, 2022
1 parent 39d2cb7 commit fd3780c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/app/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ocsjs/app",
"version": "1.3.2",
"version": "1.3.3",
"description": "app package of ocs",
"main": "index.js",
"scripts": {
Expand Down
4 changes: 2 additions & 2 deletions packages/common/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { existsSync } from 'fs';
import { join } from 'path';
import { ValidBrowser } from './interface';

// 获取 chrome 路径
// 获取可用浏览器路径
export function getValidBrowsers(): ValidBrowser[] {
return [
{
Expand All @@ -17,7 +17,7 @@ export function getValidBrowsers(): ValidBrowser[] {
name: '火狐浏览器(Firefox)',
path: resolveBrowserPath('Mozilla Firefox\\firefox.exe')
}
];
].filter((b) => b.path);
}

function resolveBrowserPath(commonPath: string) {
Expand Down

0 comments on commit fd3780c

Please sign in to comment.