Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'js/piwik.js')
-rw-r--r--js/piwik.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/piwik.js b/js/piwik.js
index c86cf377fa..7d201c357e 100644
--- a/js/piwik.js
+++ b/js/piwik.js
@@ -2449,7 +2449,7 @@ if (typeof window.Matomo !== 'object') {
';SameSite=' + sameSite;
// check the cookie was actually set
- if (getCookie(cookieName) !== value) {
+ if ((!msToExpire || msToExpire >= 0) && getCookie(cookieName) !== value) {
var msg = 'There was an error setting cookie `' + cookieName + '`. Please check domain and path.';
logConsoleError(msg);
}