UNPKG

@68publishers/cookie-consent

Version:

Cookie consent wrapper based on orestbida/cookieconsent with GTM integration.

18 lines (13 loc) 355 B
import { AbstractIdentity } from './AbstractIdentity.mjs'; export class StaticIdentity extends AbstractIdentity { constructor(id) { super(); if (!id || 0 >= id.length) { throw new Error('User identity must be non empty string.'); } this._id = id; } toString() { return this._id; } }