diff options
author | mattab <matthieu.aubry@gmail.com> | 2016-07-15 05:48:26 +0300 |
---|---|---|
committer | mattab <matthieu.aubry@gmail.com> | 2016-07-15 05:48:26 +0300 |
commit | 5b4089c365f89fc291acf5965d67d97a3e65c316 (patch) | |
tree | 467cca39272cf3d9098fbd3993da47d9834ef572 | |
parent | 9b3fd358d673333407ea5d1eb887e1d63d2fbd10 (diff) |
Fix JS error when running tests in edge browser
-rw-r--r-- | tests/javascript/index.php | 2 |
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() { |