From 1df5c0be48156410bc33f2023f6348b8fdfa6338 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Machulda?= Date: Wed, 10 Nov 2021 16:57:52 +0100 Subject: [PATCH] BREAKING CHANGES: Remove themeCss config property and only document standard way #CCM-28 --- README.md | 1 - src/LmcCookieConsentManager.js | 4 ---- 2 files changed, 5 deletions(-) diff --git a/README.md b/README.md index c3373f60..d4110f21 100644 --- a/README.md +++ b/README.md @@ -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`.
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. | diff --git a/src/LmcCookieConsentManager.js b/src/LmcCookieConsentManager.js index 81dc37a6..7915d221 100644 --- a/src/LmcCookieConsentManager.js +++ b/src/LmcCookieConsentManager.js @@ -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) => {}, @@ -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 @@ -37,7 +35,6 @@ const LmcCookieConsentManager = (args) => { const { defaultLang, autodetectLang, - themeCss, onFirstAccept, onFirstAcceptOnlyNecessary, onFirstAcceptAll, @@ -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