Skip to content

Commit

Permalink
Added fetch options
Browse files Browse the repository at this point in the history
  • Loading branch information
saikumarrs committed Aug 17, 2021
1 parent bb2b13b commit 19adcad
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions analytics.js
Original file line number Diff line number Diff line change
Expand Up @@ -214,12 +214,20 @@ class Analytics {
// For testing purposes only
const cdnURL =
"https://ddim5kcy73icz.cloudfront.net/integration/AdobeAnalytics.js";
fetch(cdnURL)
fetch(cdnURL, {
method: "GET",
mode: "no-cors",
})
.then((modObj) => {
logger.debug(
"[Analytics] loadIntegrationModule :: modObj :: ",
modName,
modObj
);
this.dynamicallyLoadedIntegrations[modName] = modObj;
})
.catch((err) => {
logger.debug(
logger.error(
"[Analytics] loadIntegrationModule :: failed trying to dynamically load integration module:: ",
modName,
err
Expand Down

0 comments on commit 19adcad

Please sign in to comment.