fix node check
This commit is contained in:
parent
f618c0b5ee
commit
79f8370f7c
|
@ -13,7 +13,8 @@ export class Utils {
|
|||
}
|
||||
|
||||
Utils.inited = true;
|
||||
Utils.isNode = typeof process !== 'undefined' && (process as any).release.name === 'node';
|
||||
Utils.isNode = typeof process !== 'undefined' && (process as any).release != null &&
|
||||
(process as any).release.name === 'node';
|
||||
Utils.isBrowser = typeof window !== 'undefined';
|
||||
Utils.global = Utils.isNode && !Utils.isBrowser ? global : window;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue