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"
|
"background": "#ffd500ff"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onStatusChange: function(status, chosenBefore) {
|
onInitialise: function (status) {
|
||||||
// Allow cookies
|
// When cookies are allowed
|
||||||
if (status == 'allow') {
|
if (status == 'allow') {
|
||||||
cookiesEnabled = true;
|
cookiesEnabled = true;
|
||||||
// Disable cookies
|
}
|
||||||
|
},
|
||||||
|
onStatusChange: function(status, chosenBefore) {
|
||||||
|
// When cookies are allowed
|
||||||
|
if (status == 'allow') {
|
||||||
|
cookiesEnabled = true;
|
||||||
|
// When cookies are disabled
|
||||||
} else {
|
} else {
|
||||||
cookiesEnabled = false
|
cookiesEnabled = false
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user