diff --git a/ts/Decoder/gpu-utils.ts b/ts/Decoder/gpu-utils.ts index 438ca9d90..a973b65ef 100644 --- a/ts/Decoder/gpu-utils.ts +++ b/ts/Decoder/gpu-utils.ts @@ -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; }