File: /home/cafsindia/snap.cafsinfotech.in/node_modules/@sentry/utils/cjs/isBrowser.js.map
{"version":3,"file":"isBrowser.js","sources":["../../src/isBrowser.ts"],"sourcesContent":["import { isNodeEnv } from './node';\nimport { GLOBAL_OBJ } from './worldwide';\n\n/**\n * Returns true if we are in the browser.\n */\nexport function isBrowser(): boolean {\n // eslint-disable-next-line no-restricted-globals\n return typeof window !== 'undefined' && (!isNodeEnv() || isElectronNodeRenderer());\n}\n\ntype ElectronProcess = { type?: string };\n\n// Electron renderers with nodeIntegration enabled are detected as Node.js so we specifically test for them\nfunction isElectronNodeRenderer(): boolean {\n return (\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-explicit-any\n (GLOBAL_OBJ as any).process !== undefined && ((GLOBAL_OBJ as any).process as ElectronProcess).type === 'renderer'\n );\n}\n"],"names":["isNodeEnv","GLOBAL_OBJ"],"mappings":";;;;;AAGA;AACA;AACA;AACA,SAAA,SAAA,GAAA;AACA;AACA,EAAA,OAAA,OAAA,MAAA,KAAA,WAAA,KAAA,CAAAA,cAAA,EAAA,IAAA,sBAAA,EAAA,CAAA,CAAA;AACA,CAAA;;AAIA;AACA,SAAA,sBAAA,GAAA;AACA,EAAA;AACA;AACA,IAAA,CAAAC,oBAAA,GAAA,OAAA,KAAA,SAAA,IAAA,CAAA,CAAAA,oBAAA,GAAA,OAAA,GAAA,IAAA,KAAA,UAAA;AACA,IAAA;AACA;;;;"}