Skip to content

Commit

Permalink
Merge pull request #3 from Nguonchhay/fix-missing-variable
Browse files Browse the repository at this point in the history
[BUGFIX] Declare missing variable didConsent
  • Loading branch information
Nikdro authored Jul 11, 2018
2 parents 0b3784d + 0aa028c commit 6a5f305
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Resources/Private/Templates/FusionObjects/Initialize.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

settings.onInitialise = function (status) {
var type = this.options.type;
var didConsent = this.hasConsented();
if (type === 'opt-in') {
if (status === 'allow') {
document.dispatchEvent(new CustomEvent("kd-cookieconsent", {detail: "enable-cookies"}));
Expand All @@ -25,6 +26,7 @@

settings.onStatusChange = function (status) {
var type = this.options.type;
var didConsent = this.hasConsented();
if (type === 'opt-in') {
if (status === 'allow') {
document.dispatchEvent(new CustomEvent("kd-cookieconsent", {detail: "enable-cookies"}));
Expand Down

0 comments on commit 6a5f305

Please sign in to comment.