Skip to content

Commit

Permalink
Docs: Unify codestyle in examples
Browse files Browse the repository at this point in the history
  • Loading branch information
OndraM committed Nov 10, 2021
1 parent 3743330 commit c6ebfa0
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,8 @@ To execute custom code which depends on cookie consent use callbacks:
// ...
initLmcCookieConsentManager(
{
'onAcceptAll': (cookie, cookieConsent) => {
if (cookieConsent.allowedCategory('functionality') {
onAcceptAll: (cookie, cookieConsent) => {
if (cookieConsent.allowedCategory('functionality')) {
startOptionalFeature();
}
},
Expand All @@ -160,8 +160,8 @@ This feature is enabled by default. If you'd like to disable it, you can do so b
```js
initLmcCookieConsentManager(
{
'config': {
'page_scripts': false
config: {
page_scripts: false
}
}
);
Expand All @@ -174,12 +174,12 @@ Optional config parameters could be provided on plugin initialization in the con
```js
initLmcCookieConsentManager( // when loaded as a module, these options are passed to `LmcCookieConsentManager()` instead
{
'defaultLang': 'cs',
'autodetectLang': false,
'onAcceptAll': (cookie, cookieConsent) => {
defaultLang: 'cs',
autodetectLang: false,
onAcceptAll: (cookie, cookieConsent) => {
// custom code
},
'config': {
config: {
// overrides of default config, see https://github.com/orestbida/cookieconsent#all-available-options
},
}
Expand Down

0 comments on commit c6ebfa0

Please sign in to comment.