Skip to content
This repository has been archived by the owner on Apr 3, 2024. It is now read-only.

fix(preferences): uniformize events import #287

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@

# IDE
.vscode/
.idea/
2 changes: 1 addition & 1 deletion src/consent-manager-builder/preferences.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import cookies from 'js-cookie'
import topDomain from '@segment/top-domain'
import { WindowWithAJS, Preferences, CategoryPreferences } from '../types'
import { EventEmitter } from 'events'
import EventEmitter from 'events'

const DEFAULT_COOKIE_NAME = 'tracking-preferences'
const COOKIE_DEFAULT_EXPIRES = 365
Expand Down