Skip to content

Commit

Permalink
Merge pull request #5545 from kiva/chore-remove-px
Browse files Browse the repository at this point in the history
  • Loading branch information
mcstover authored Sep 25, 2024
2 parents cbf002d + b33260b commit 3e560a2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 16 deletions.
2 changes: 0 additions & 2 deletions config/dynamic.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ const baseUrl = process.env.BASE_URL || 'development.kiva.org';
const env = process.env.SHORT_ENV || 'dev';
const formattedUrlEnv = env === 'prod' ? '' : `${env}.`;
const enableOptimizely = process.env.ENABLE_OPTIMIZELY !== 'false';
const enablePerimeterx = process.env.ENABLE_PERIMETERX !== 'false';
const enableHotjar = process.env.ENABLE_HOTJAR !== 'false';
const graphqlUri = process.env.API_HOSTNAME || `https://gateway.${baseUrl}/graphql`;

Expand Down Expand Up @@ -55,7 +54,6 @@ export const app = {
enableGTM: true,
enableHotjar,
enableOptimizely,
enablePerimeterx,
enableSentry: true,
enableSnowplow: true,
fbApplicationId: process.env.FACEBOOK_APP_ID || '364044572460',
Expand Down
15 changes: 1 addition & 14 deletions src/head/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,20 +77,7 @@ export default (config, globalOneTrustEvent) => {
a.appendChild(r);
})(window,document,'https://static.hotjar.com/c/hotjar-','.js?sv=');
};
// Always load
// PerimeterX snippet
if (config.enablePerimeterx) {
/* eslint-disable */
(function(){
window._pxAppId = config.perimeterxAppId;
var p = document.getElementsByTagName('script')[0],
s = document.createElement('script');
s.async = 1;
s.src = `${window.location.origin}/${config.perimeterxAppId.substring(2)}/init.js`;
p.parentNode.insertBefore(s,p);
}());
/* eslint-enable */
}

// Google Recaptcha loaded indicator
window.recaptchaLoaded = new Promise(resolve => {
window.recaptchaOnloadCallback = () => {
Expand Down

0 comments on commit 3e560a2

Please sign in to comment.