UNPKG

1.57 kBSource Map (JSON)View Raw
1{"version":3,"file":"logging.fx.js","sourceRoot":"","sources":["../../src/environment/logging.fx.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,gBAAgB,CAAC;AAEvC,OAAO,KAAK,IAAI,MAAM,cAAc,CAAC;AACrC,OAAO,aAAa,MAAM,uBAAuB,CAAC;AAElD,IAAI,SAAS,CAAC,QAAQ,IAAI,SAAS,CAAC,QAAQ,CAAC,MAAM,EAAE;IACnD,gGAAgG;IAChG,0GAA0G;IAC1G,IAAI,CAAC,qBAAqB,EAAE,EAAE;QAC5B,IAAI,CAAC,oBAAoB,EAAE,CAAC;KAC7B;SAAM;QACL,aAAa,CAAC,qBAAqB,CAAC,MAAM,EAAE,EAAE,EAAE;YAC9C,uFAAuF;SACxF,CAAC,CAAC;KACJ;CACF;AAED;;;;GAIG;AACH,SAAS,qBAAqB;IAC5B,OAAO,SAAS,EAAE,OAAO,KAAK,OAAO,CAAC;AACxC,CAAC","sourcesContent":["import Constants from 'expo-constants';\n\nimport * as Logs from '../logs/Logs';\nimport RemoteLogging from '../logs/RemoteLogging';\n\nif (Constants.manifest && Constants.manifest.logUrl) {\n // Enable logging to the Expo dev tools only if this JS is not running in a web browser (ex: the\n // remote debugger). In Expo Web we don't show console logs in the CLI, so there's no special case needed.\n if (!isRunningInWebBrowser()) {\n Logs.enableExpoCliLogging();\n } else {\n RemoteLogging.enqueueRemoteLogAsync('info', {}, [\n 'You are now debugging remotely; check your browser console for your application logs.',\n ]);\n }\n}\n\n/**\n * In all web browsers navigator.product is \"Gecko\" for compatibility reasons.\n * See https://developer.mozilla.org/en-US/docs/Web/API/NavigatorID/product\n * and the discussion at https://github.com/expo/expo/pull/8807#discussion_r441391148.\n */\nfunction isRunningInWebBrowser() {\n return navigator?.product === 'Gecko';\n}\n"]}
\No newline at end of file