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

Commit

Permalink
standalone: update the props
Browse files Browse the repository at this point in the history
  • Loading branch information
Rowno committed May 18, 2018
1 parent 171cf9f commit bfe2a38
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/standalone.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,10 @@ if (window.consentManagerConfig) {
props.bannerContent = dataset.bannercontent
props.bannerTextColor = dataset.bannertextcolor
props.bannerBackgroundColor = dataset.bannerbackgroundcolor
props.dialogTitle = dataset.dialogtitle
props.dialogContent = dataset.dialogcontent
props.preferencesDialogTitle = dataset.preferencesdialogtitle
props.preferencesDialogContent = dataset.preferencesdialogcontent
props.cancelDialogTitle = dataset.canceldialogtitle
props.cancelDialogContent = dataset.canceldialogcontent
}

if (!props.container) {
Expand All @@ -48,12 +50,12 @@ if (!props.bannerContent) {
throw new Error('ConsentManager: bannerContent is required')
}

if (!props.dialogTitle) {
throw new Error('ConsentManager: dialogTitle is required')
if (!props.preferencesDialogContent) {
throw new Error('ConsentManager: preferencesDialogContent is required')
}

if (!props.dialogContent) {
throw new Error('ConsentManager: dialogContent is required')
if (!props.cancelDialogContent) {
throw new Error('ConsentManager: cancelDialogContent is required')
}

if (typeof props.otherWriteKeys === 'string') {
Expand Down

0 comments on commit bfe2a38

Please sign in to comment.