forked from marva/sumorobot-web
		
	add cookie status on initialise listener
This commit is contained in:
		@@ -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
 | 
			
		||||
            }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user