From ba9bbd8777728784dc385924aace15f4b1177cfd Mon Sep 17 00:00:00 2001 From: danielgrippi Date: Thu, 3 May 2012 15:16:33 -0700 Subject: [PATCH] don't use double quotes in your JS examples, chartbeat, thx. [ci skip] --- app/helpers/analytics_helper.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/helpers/analytics_helper.rb b/app/helpers/analytics_helper.rb index 7c0e7b7e9..7dee6013c 100644 --- a/app/helpers/analytics_helper.rb +++ b/app/helpers/analytics_helper.rb @@ -42,8 +42,8 @@ module AnalyticsHelper e.setAttribute('language', 'javascript'); e.setAttribute('type', 'text/javascript'); e.setAttribute('src', - (("https:" == document.location.protocol) ? "https://a248.e.akamai.net/chartbeat.download.akamai.com/102508/" : "http://static.chartbeat.com/") + - "js/chartbeat.js"); + (('https:' == document.location.protocol) ? 'https://a248.e.akamai.net/chartbeat.download.akamai.com/102508/' : 'http://static.chartbeat.com/') + + 'js/chartbeat.js'); document.body.appendChild(e); }; var oldonload = window.onload;