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:
authormattab <matthieu.aubry@gmail.com>2016-07-15 05:48:26 +0300
committermattab <matthieu.aubry@gmail.com>2016-07-15 05:48:26 +0300
commit5b4089c365f89fc291acf5965d67d97a3e65c316 (patch)
tree467cca39272cf3d9098fbd3993da47d9834ef572 /tests/javascript/index.php
parent9b3fd358d673333407ea5d1eb887e1d63d2fbd10 (diff)
Fix JS error when running tests in edge browser
Diffstat (limited to 'tests/javascript/index.php')
-rw-r--r--tests/javascript/index.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/javascript/index.php b/tests/javascript/index.php
index 938dc085ac..4339fcd614 100644
--- a/tests/javascript/index.php
+++ b/tests/javascript/index.php
@@ -2753,7 +2753,7 @@ function PiwikTest() {
function getVisitorIdFromCookie(tracker) {
visitorCookieName = tracker.hook.test._getCookieName('id');
visitorCookieValue = tracker.hook.test._getCookie(visitorCookieName);
- return visitorCookieValue.split('.')[0];
+ return visitorCookieValue ? visitorCookieValue.split('.')[0] : '';
}
test("User ID and Visitor UUID", function() {