v1.18.x
Julian Lam 8 years ago
parent a63459dc98
commit 1594a84e1c

@ -630,8 +630,8 @@ app.cacheBuster = null;
}; };
app.showCookieWarning = function () { app.showCookieWarning = function () {
if (!config.cookies.enabled) { if (!config.cookies.enabled || !navigator.cookieEnabled) {
// Only show warning if enabled (obviously) // Skip warning if cookie consent subsystem disabled (obviously), or cookies not in use
return; return;
} else if (window.location.pathname.startsWith(config.relative_path + '/admin')) { } else if (window.location.pathname.startsWith(config.relative_path + '/admin')) {
// No need to show cookie consent warning in ACP // No need to show cookie consent warning in ACP

Loading…
Cancel
Save