Skip to content

Commit

Permalink
Refactor: Unify variable casing to camelCase
Browse files Browse the repository at this point in the history
  • Loading branch information
OndraM committed Nov 1, 2021
1 parent 23314b5 commit 3f1367e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/LmcCookieConsentManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@ const LmcCookieConsentManager = (args) => {
} = options;
const cookieName = 'lmc_ccm';

const cookieconsent = window.initCookieConsent();
const isFirstTimeAccept = !cookieconsent.validCookie(cookieName);
const cookieConsent = window.initCookieConsent();
const isFirstTimeAccept = !cookieConsent.validCookie(cookieName);

cookieconsent.run({
cookieConsent.run({
current_lang: currentLang,
auto_language: true,
theme_css: themeCss,
Expand All @@ -66,7 +66,7 @@ const LmcCookieConsentManager = (args) => {
},
},
onAccept: (cookie) => {
const givenLevels = cookieconsent.get('level');
const givenLevels = cookieConsent.get('level');
const acceptedOnlyNecessary =
givenLevels.length === 1 && givenLevels[0] === 'necessary';

Expand Down

0 comments on commit 3f1367e

Please sign in to comment.