HotFix: Decline allow

This commit is contained in:
José Luis Garrido Labrador
2018-10-24 12:36:07 +02:00
parent db1858772b
commit 5c66845c28
3 changed files with 27 additions and 16 deletions

View File

@@ -53,29 +53,29 @@
<script>
window.addEventListener("load", function(){
window.cookieconsent.initialise({
onInitialise: function (status) {
"onInitialise": function (status) {
var type = this.options.type;
var didConsent = this.hasConsented();
if (type == 'opt-in' && didConsent) {
}
if (type == 'opt-out' && !didConsent) {
deleteCookies();
}
},
"onStatusChange": function(status, chosenBefore) {
var type = this.options.type;
var didConsent = this.hasConsented();
if (type == 'opt-in' && didConsent) {
// enable cookies
}
if (type == 'opt-out' && !didConsent) {
// disable cookies
deleteCookies();
}
},
onStatusChange: function(status, chosenBefore) {
var type = this.options.type;
var didConsent = this.hasConsented();
if (type == 'opt-in' && didConsent) {
// enable cookies
}
if (type == 'opt-out' && !didConsent) {
// disable cookies
}
},
onRevokeChoice: function() {
"onRevokeChoice": function() {
var type = this.options.type;
if (type == 'opt-in') {
// disable cookies