mirror of
https://gitlab.com/CodeSolutionsProject/CodeShare.git
synced 2026-02-17 10:31:32 +01:00
HotFix: Decline allow
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user