Skip to content

Commit

Permalink
Merge pull request #1267 from hlxsites/1266-salesforce-beacon
Browse files Browse the repository at this point in the history
1266-salesforce-beacon
  • Loading branch information
davenichols-DHLS authored Oct 17, 2024
2 parents 78c82d4 + c9762c4 commit a09abce
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
20 changes: 20 additions & 0 deletions scripts/scripts-dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,26 @@ export function moveInstrumentation(from, to) {
);
}

/**
* SalesForce MCP
*/

function loadEvergageScript() {
const script = document.createElement('script');
if (window.location.host === 'lifesciences.danaher.com') {
script.src = 'https://cdn.evgnet.com/beacon/v55685555553mx3rf3h3n3n3i091550196/danaher_ls_prod/scripts/evergage.min.js';
} else {
script.src = 'https://cdn.evgnet.com/beacon/v55685555553mx3rf3h3n3n3i091550196/danaher_ls_staging/scripts/evergage.min.js';
}
script.onload = function onEvergageLoad() {
};
script.onerror = function onEvergageError() {
};
document.head.appendChild(script);
}

loadEvergageScript();

/**
* Get the Image URL from Scene7 and Optimize the picture
* @param {string} imageUrl
Expand Down
Loading

0 comments on commit a09abce

Please sign in to comment.