From 7c0fbb7f92d2d1b3a5f43105c4395d1ccd68c199 Mon Sep 17 00:00:00 2001 From: Andreas Marschke Date: Tue, 23 Dec 2014 20:04:29 +0100 Subject: [PATCH] Properly check for falsiness when testing for existing cookies --- plugins/GUID.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/GUID.js b/plugins/GUID.js index ead7b6f3f..a3ca116cc 100644 --- a/plugins/GUID.js +++ b/plugins/GUID.js @@ -21,7 +21,7 @@ BOOMR.utils.pluginConfig(impl, config, "GUID", properties); BOOMR.info("Initializing plugin GUID " + impl.cookieName , "GUID"); - if( BOOMR.utils.getCookie(impl.cookieName) == null ) { + if(!BOOMR.utils.getCookie(impl.cookieName)) { BOOMR.info("Could not find a cookie for " + impl.cookieName, "GUID"); var guid = impl.generate();