1234567891011121314151617181920212223 |
- Object.defineProperty(exports, '__esModule', { value: true });
- const node = require('./node.js');
- const worldwide = require('./worldwide.js');
- function isBrowser() {
-
- return typeof window !== 'undefined' && (!node.isNodeEnv() || isElectronNodeRenderer());
- }
- function isElectronNodeRenderer() {
- return (
-
- (worldwide.GLOBAL_OBJ ).process !== undefined && ((worldwide.GLOBAL_OBJ ).process ).type === 'renderer'
- );
- }
- exports.isBrowser = isBrowser;
|