Skip to content

Commit

Permalink
TDW-2277 moved fetchplaceholders call into the function
Browse files Browse the repository at this point in the history
  • Loading branch information
bosco-ensemble committed Apr 9, 2024
1 parent 4d66e76 commit 9da752b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
* governing permissions and limitations under the License.
*/

const placeholders = await fetchPlaceholders();
const isProd = window.location.hostname.endsWith(placeholders.hostname);
/**
* log RUM if part of the sample.
* @param {string} checkpoint identifies the checkpoint in funnel
Expand Down Expand Up @@ -1198,6 +1196,8 @@ function getCookie(cookieName) {
}

async function loadAds(doc) {
const placeholders = await fetchPlaceholders();
const isProd = window.location.hostname.endsWith(placeholders.hostname);
if (!isProd === 'this') {
// temporary override for analytics testing
if (!localStorage.getItem('OptIn_PreviousPermissions')) localStorage.setItem('OptIn_PreviousPermissions', '{"aa":true,"mediaaa":true,"target":true,"ecid":true,"adcloud":true,"aam":true,"campaign":true,"livefyre":false}');
Expand Down

0 comments on commit 9da752b

Please sign in to comment.