diff --git a/README.md b/README.md index 506c9f4b..57a3610e 100644 --- a/README.md +++ b/README.md @@ -137,14 +137,6 @@ var orejimeConfig = { // defaults to false mustNotice: false, - // Optional. If "implicitConsent" is set to true, Orejime will automatically accept - // cookies if the user continues his navigation on the website after the - // first page. If you enable this, you must warn the user - // of this behavior in the notice window. You can do that easily by overriding - // translation strings (see below). - // defaults to false - implicitConsent: false, - // Optional. You can define the UI language directly here. If undefined, Orejime will // use the value given in the global "lang" variable, or fallback to the value // in the lang attribute, or fallback to "en". diff --git a/dist/index.html b/dist/index.html index 3e6febed..d077e47a 100644 --- a/dist/index.html +++ b/dist/index.html @@ -134,7 +134,6 @@

They're using Orejime

window.orejimeConfig = { appElement: "#app", privacyPolicy: "#privacyPolicy", - implicitConsent: true, cookieDomain: 'orejime.com', translations: { en: { diff --git a/src/consent-manager.js b/src/consent-manager.js index 139dbef7..9a477650 100644 --- a/src/consent-manager.js +++ b/src/consent-manager.js @@ -11,11 +11,7 @@ export default class ConsentManager { this.executedOnce = {} //keep track of which apps have been executed at least once this.watchers = new Set([]) this.loadConsents() - if (this.hasImplicitConsent()) { - this.saveAndApplyConsents() - } else { - this.applyConsents() - } + this.applyConsents() } get cookieName(){ @@ -108,28 +104,6 @@ export default class ConsentManager { this.changed = true } - hasImplicitConsent(){ - if (this.confirmed) { - return false - } - - const enableImplicitConsent = typeof this.config.implicitConsent !== 'undefined' - ? this.config.implicitConsent - : false - if (!enableImplicitConsent) { - return false - } - - const currentHost = document.location.hostname - const referrerHost = document.referrer.split('/')[2] - const isFirstVisit = currentHost !== referrerHost - if (isFirstVisit) { - return false - } - - return true - } - loadConsents(){ const consentCookie = getCookie(this.cookieName) if (consentCookie !== null && consentCookie.value !== ''){ diff --git a/src/orejime.js b/src/orejime.js index a9ddde16..e5a76e45 100644 --- a/src/orejime.js +++ b/src/orejime.js @@ -51,7 +51,6 @@ export const defaultConfig = { default: true, mustConsent: false, mustNotice: false, - implicitConsent: false, logo: false, lang: language(), translations: {},