mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 08:13:42 +00:00
fix node check
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user