fix typeof comparison should be to string

This commit is contained in:
Berkeley Martinez
2015-09-17 00:18:43 -07:00
parent 1418669757
commit e63e05c1b6

View File

@ -1,5 +1,9 @@
$(document).ready(function() {
var challengeName = typeof challengeName !== undefined ? challengeName : 'Untitled';
var challengeName = typeof challengeName !== 'undefined' ?
challengeName :
'Untitled';
if (challengeName) {
ga('send', 'event', 'Challenge', 'load', challengeName);
}