mirror of
https://github.com/bitwarden/browser.git
synced 2024-12-25 16:59:17 +01:00
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
Block a user