diff --git a/.editorconfig b/.editorconfig index 2cf1e371..1720631b 100644 --- a/.editorconfig +++ b/.editorconfig @@ -14,4 +14,3 @@ trim_trailing_whitespace = true [*.scss] indent_size = 4 - diff --git a/demo/autoload.html b/demo/autoload.html index 6310b320..38b70189 100644 --- a/demo/autoload.html +++ b/demo/autoload.html @@ -3,9 +3,9 @@ Cookie Consent Demo - + - + diff --git a/demo/bootstrap.html b/demo/bootstrap.html index 1da9de52..82acc472 100644 --- a/demo/bootstrap.html +++ b/demo/bootstrap.html @@ -3,9 +3,9 @@ Cookie Consent Demo - + - + @@ -14,7 +14,7 @@

LMC Cookie Consent Manager Demo

diff --git a/package.json b/package.json index 64454659..e67e13ed 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,7 @@ "build:js": "node scripts/build.js", "build": "yarn build:js && yarn build:css", "format": "yarn format:check", - "format:check": "prettier --list-different 'src/**/*.{js,jsx,ts,tsx,scss}' 'scripts/*'", + "format:check": "prettier --check 'src/**/*.{js,jsx,ts,tsx,scss}' 'scripts/*'", "format:fix": "prettier --write 'src/**/*.{js,jsx,ts,tsx,scss}' 'scripts/*'" }, "dependencies": { diff --git a/src/LmcCookieConsentManager.js b/src/LmcCookieConsentManager.js index 26cb85e8..0be89467 100644 --- a/src/LmcCookieConsentManager.js +++ b/src/LmcCookieConsentManager.js @@ -12,9 +12,15 @@ const LmcCookieConsentManager = (options = defaultOptions) => { cookieconsent.run({ current_lang: currentLang, + auto_language: true, theme_css: themeCss, cookie_name: 'lmc_ccm', cookie_expiration: 365, + use_rfc_cookie: true, + autorun: true, + delay: 0, + force_consent: false, + hide_from_bots: true, // To be hidden also from Selenium gui_options: { consent_modal: { layout: 'bar', // box/cloud/bar