@68publishers/cookie-consent
Version:
Cookie consent wrapper based on orestbida/cookieconsent with GTM integration.
24 lines (18 loc) • 567 B
JavaScript
import { AbstractOptions } from './AbstractOptions.mjs';
export class UiOptions extends AbstractOptions {
constructor(scriptBasePath) {
super();
this._scriptBasePath = scriptBasePath;
this.include_default_stylesheets = true;
this.external_stylesheets = [];
this.internal_stylesheets = [];
}
get defaultStylesheets() {
if (true === this.include_default_stylesheets) {
return [
`${this._scriptBasePath}/cookie-consent.css`,
];
}
return [];
}
}