From 3a0bda0f92dcd2b795e4c1cab73ab1437138dd62 Mon Sep 17 00:00:00 2001 From: jameskopacz Date: Mon, 9 Mar 2015 04:49:03 -0500 Subject: [PATCH] "challengeName is not defined" fix Was getting this error in Firefox and Chrome: Uncaught ReferenceError: challengeName is not defined --- public/js/main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/js/main.js b/public/js/main.js index 64a90ce2d2..54ca6e029c 100644 --- a/public/js/main.js +++ b/public/js/main.js @@ -1,5 +1,5 @@ $(document).ready(function() { - challengeName = typeof challengeName !== undefined ? challengeName : 'Untitled'; + var challengeName = typeof challengeName !== undefined ? challengeName : 'Untitled'; if (challengeName) { ga('send', 'event', 'Challenge', 'load', challengeName); } @@ -331,4 +331,4 @@ profileValidation.directive('uniqueEmail', ['$http', function($http) { }); } } -}]); \ No newline at end of file +}]);