@68publishers/cookie-consent
Version:
Cookie consent wrapper based on orestbida/cookieconsent with GTM integration.
15 lines (13 loc) • 571 B
JavaScript
export class StorageConfig {
constructor(config) {
if (!('name' in config) || '' === config.name) {
throw new Error('Missing required property "name".')
}
this.name = config.name;
this.enabled_by_default = config.enabled_by_default || false;
this.display_in_widget = config.display_in_widget || false;
this.readonly = config.readonly || false;
this.sync_consent_with = config.sync_consent_with || null;
this.show_modal_again_expiration = config.show_modal_again_expiration || null;
}
}