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