mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-05-06 17:27:13 +02:00
fixes #5536
This commit is contained in:
@@ -630,8 +630,8 @@ app.cacheBuster = null;
|
||||
};
|
||||
|
||||
app.showCookieWarning = function () {
|
||||
if (!config.cookies.enabled) {
|
||||
// Only show warning if enabled (obviously)
|
||||
if (!config.cookies.enabled || !navigator.cookieEnabled) {
|
||||
// Skip warning if cookie consent subsystem disabled (obviously), or cookies not in use
|
||||
return;
|
||||
} else if (window.location.pathname.startsWith(config.relative_path + '/admin')) {
|
||||
// No need to show cookie consent warning in ACP
|
||||
|
||||
Reference in New Issue
Block a user