Skip to content

Commit

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

0 comments on commit 83f3e56

Please sign in to comment.