Skip to content

Commit

Permalink
Revert "chore: optimize"
Browse files Browse the repository at this point in the history
This reverts commit 83f3e56.
  • Loading branch information
guoxianzhe committed Nov 12, 2024
1 parent 83f3e56 commit e839e8f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ts/Decoder/gpu-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ export class GpuInfo {
* @ignore
*/
export const getGpuInfoInternal = (callback: any): void => {
if (typeof window === 'undefined') {
//@ts-ignore
if (process.type !== 'browser') {
console.error('getGpuInfoInternal should be called in main process');
return;
}
Expand Down

0 comments on commit e839e8f

Please sign in to comment.