Skip to content

Commit

Permalink
BREAKING CHANGES: Remove themeCss config property and only document s…
Browse files Browse the repository at this point in the history
…tandard way #CCM-28
  • Loading branch information
OndraM committed Nov 11, 2021
1 parent c6ebfa0 commit 1df5c0b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,6 @@ initLmcCookieConsentManager( // when loaded as a module, these options are passe
|---------------|----------|--------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------|
| `defaultLang` | string | 'cs' | Default language. One of `cs`, `en`, `sk`, `pl`. This language will be used when autodetect is disabled or when it fails. |
| `autodetectLang`| string | true | Autodetect language from the browser. If autodetect fails or if unsupported language is detected, fallback to `defaultLang`.<br>When disabled, force language to `defaultLang`. |
| `themeCss` | string | '' | Specify path to the .css file |
| `config` | Object | {} | Override default config of the underlying library. For all parameters see [original library](https://github.com/orestbida/cookieconsent#all-available-options). |
| `on*` callbacks| function | (cookie, cookieConsent) => {} | See below for configurable callbacks. |
Expand Down
4 changes: 0 additions & 4 deletions src/LmcCookieConsentManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import { config as configSk } from './languages/sk';
const defaultOptions = {
defaultLang: 'cs',
autodetectLang: true,
themeCss: '',
onFirstAccept: (cookie, cookieConsent) => {},
onFirstAcceptOnlyNecessary: (cookie, cookieConsent) => {},
onFirstAcceptAll: (cookie, cookieConsent) => {},
Expand All @@ -22,7 +21,6 @@ const defaultOptions = {
* @param {Object} [args] - Options for cookie consent manager
* @param {string} [args.defaultLang] - Default language. Must be one of predefined languages.
* @param {boolean} [args.autodetectLang] - Autodetect language from the browser
* @param {string} [args.themeCss] - Specify file to the .css file
* @param {function} [args.onFirstAccept] - Callback to be executed right after any consent is just accepted
* @param {function} [args.onFirstAcceptOnlyNecessary] - Callback to be executed right after only necessary cookies are accepted
* @param {function} [args.onFirstAcceptAll] - Callback to be executed right after all cookies are accepted
Expand All @@ -37,7 +35,6 @@ const LmcCookieConsentManager = (args) => {
const {
defaultLang,
autodetectLang,
themeCss,
onFirstAccept,
onFirstAcceptOnlyNecessary,
onFirstAcceptAll,
Expand All @@ -60,7 +57,6 @@ const LmcCookieConsentManager = (args) => {
force_consent: false, // Do not force the consent before page could be used
hide_from_bots: true, // To be hidden also from Selenium
page_scripts: true, // Manage third-party scripts loaded using <script>
theme_css: themeCss, // Path to external CSS loaded by the component. Empty to disable.
use_rfc_cookie: true, // Store cookie content in RFC compatible format.
gui_options: {
consent_modal: {
Expand Down

0 comments on commit 1df5c0b

Please sign in to comment.