Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions src/docs/components/docs/configuration.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,19 @@ export default class CmpApi extends Component {
by pubvendors.json.
</span>
</span>
<span class={style.argument}>
<span class={style.argumentType}>gdprApplies (Boolean)</span>:
<span class={style.argumentDescription}>
Indicates that the publisher has configured the CMP to apply GDPR. This flag does not change the behavior of the CMP.
</span>
</span>
<span class={style.argument}>
<span class={style.argumentType}>gdprAppliesGlobally (Boolean)</span>:
<span class={style.argumentDescription}>
Indicates that the publisher has configured the CMP to apply GDPR to all (including non-EU) visitors.
This flag does not change the behavior of the CMP.
</span>
</span>
<span class={style.argument}>
<span class={style.argumentType}>theme (Object)</span>:
<span class={style.argumentDescription}>
Expand Down
2 changes: 1 addition & 1 deletion src/docs/lib/stub.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ function buildScript(config, cmpLocation='../cmp.bundle.js') {
if (command === 'ping') {
if (callback) {
callback({
gdprAppliesGlobally: !!(window.__cmp && window.__cmp.config && window.__cmp.config.storeConsentGlobally),
gdprAppliesGlobally: !!(window.__cmp && window.__cmp.config && window.__cmp.config.gdprAppliesGlobally),
cmpLoaded: false
});
}
Expand Down
2 changes: 1 addition & 1 deletion src/lib/cmp.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export default class Cmp {

ping: (_, callback = () => {}) => {
const result = {
gdprAppliesGlobally: config.storeConsentGlobally,
gdprAppliesGlobally: config.gdprAppliesGlobally,
cmpLoaded: true
};
callback(result, true);
Expand Down
1 change: 1 addition & 0 deletions src/lib/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ const defaultConfig = {
localization: {},
forceLocale: null,
gdprApplies: true,
gdprAppliesGlobally: false,
allowedVendorIds: null,
theme: {}
};
Expand Down