forked from marva/sumorobot-web
add cookie status on initialise listener
This commit is contained in:
parent
58fcaa8245
commit
3775bf1e99
@ -15,11 +15,17 @@ window.addEventListener("load", function() {
|
||||
"background": "#ffd500ff"
|
||||
}
|
||||
},
|
||||
onStatusChange: function(status, chosenBefore) {
|
||||
// Allow cookies
|
||||
onInitialise: function (status) {
|
||||
// When cookies are allowed
|
||||
if (status == 'allow') {
|
||||
cookiesEnabled = true;
|
||||
// Disable cookies
|
||||
}
|
||||
},
|
||||
onStatusChange: function(status, chosenBefore) {
|
||||
// When cookies are allowed
|
||||
if (status == 'allow') {
|
||||
cookiesEnabled = true;
|
||||
// When cookies are disabled
|
||||
} else {
|
||||
cookiesEnabled = false
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user