Skip to content

Commit

Permalink
for sandbox testing
Browse files Browse the repository at this point in the history
  • Loading branch information
shandilya3 committed Oct 24, 2023
1 parent b42f4ab commit a8433e5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions sandbox/src/components/InAppMessagesDemo/InAppMessages.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,14 @@ const {
alloyInstance
} = config[configKey];

const getURLParams = key => {
const urlParams = new URLSearchParams(window.location.search);
return urlParams.get(key);
};

if (alloyInstance !== window.alloy) {
alloyInstance("configure", {
defaultConsent: getURLParams("defaultConsent") || "in",
datastreamId,
orgId,
edgeDomain,
Expand Down

0 comments on commit a8433e5

Please sign in to comment.