Skip to content

Commit

Permalink
Update bootCmp.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
akinsola-guardian committed Jan 16, 2025
1 parent e86c771 commit 192bf3f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dotcom-rendering/src/client/bootCmp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ const initialiseCmp = async () => {
const { pageViewId } = window.guardian.config.ophan;

const country = code ?? undefined;
const subscriber = window.location.search.includes('subscriber');
cmp.init({
pubData: {
platform: 'next-gen',
Expand All @@ -69,6 +70,7 @@ const initialiseCmp = async () => {
pageViewId,
},
country,
subscriber,
});
log('dotcom', 'CMP initialised');
};
Expand Down

0 comments on commit 192bf3f

Please sign in to comment.