Repository URL to install this package:
|
Version:
0.0.15 ▾
|
import React from 'react';
const { Fragment } = React;
class BodyScripts extends React.PureComponent {
render() {
const isUsingAppDynamics = !!process.env
.SHOULD_USE_APP_DYNAMICS_FRONT_END_EVEN_THOUGH_IT_REDUCES_PERF;
const appDynamicsBootstrap = `
window['adrum-start-time'] = new Date().getTime();
(function(config){
config.appKey = '${process.env.APPDYNAMICS_BROWSER_KEY}';
config.adrumExtUrlHttp = 'http://${process.env.APPDYNAMICS_ADRUM_URL}';
config.adrumExtUrlHttps = 'https://${process.env.APPDYNAMICS_ADRUM_URL}';
config.beaconUrlHttp = 'http://${process.env.APPDYNAMICS_BEACON_URL}';
config.beaconUrlHttps = 'https://${process.env.APPDYNAMICS_BEACON_URL}';
config.xd = {enable : false};
})(window['adrum-config'] || (window['adrum-config'] = {}));
`;
if (isUsingAppDynamics) {
return (React.createElement(Fragment, null,
React.createElement("script", { dangerouslySetInnerHTML: { __html: appDynamicsBootstrap } }),
React.createElement("script", { src: `//${process.env.APPDYNAMICS_ADRUM_URL}/adrum/adrum-4.5.1.1066.js` })));
}
else {
return React.createElement(Fragment, null);
}
}
}
export { BodyScripts };
export default BodyScripts;
//# sourceMappingURL=BodyScripts.js.map