UNPKG

@klaxit/cookie-consent

Version:

A simple dialog to handle cookie consent and comply with data privacy laws. Fully compliant with European GDPR & California CCPA.

13 lines (9 loc) 294 B
"use strict" import EventEmitter from "events" export default class Observable { constructor(emitter = null) { this._emitter = emitter || new EventEmitter() } on() { this._emitter.on.apply(this._emitter, arguments)} emit() { this._emitter.emit.apply(this._emitter, arguments)} }