Skip to content

Commit

Permalink
check for promise support (#209)
Browse files Browse the repository at this point in the history
  • Loading branch information
imnutz authored Dec 17, 2020
1 parent 8153276 commit 64e1667
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions lib/plugins/consent-manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ import global from 'global'
import generateUUID from '../utils/generateUUID'
import { camelCase } from '../utils/misc'

require('es6-promise').polyfill()

const STORAGE_KEY = 'td_consent_preferences'
const DEFAULT_CONSENT_TABLE = 'td_cm_consent'
const DEFAULT_CONTEXT_TABLE = 'td_cm_context'
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@
"custom-event": "^1.0.1",
"dayjs": "^1.8.34",
"domready": "^0.3.0",
"es6-promise": "^4.2.8",
"global": "^4.3.0",
"json3": "^3.3.2",
"jsonp": "0.2.1",
Expand Down
2 changes: 1 addition & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2632,7 +2632,7 @@ es-to-primitive@^1.2.1:
is-date-object "^1.0.1"
is-symbol "^1.0.2"

es6-promise@^4.0.3:
es6-promise@^4.0.3, es6-promise@^4.2.8:
version "4.2.8"
resolved "https://registry.yarnpkg.com/es6-promise/-/es6-promise-4.2.8.tgz#4eb21594c972bc40553d276e510539143db53e0a"
integrity sha512-HJDGx5daxeIvxdBxvG2cb9g4tEvwIk3i8+nhX0yGrYmZUzbkdg8QbDevheDB8gd0//uPj4c1EQua8Q+MViT0/w==
Expand Down

0 comments on commit 64e1667

Please sign in to comment.