There is a syntax error in the main code that will stop this module from working properly.
On line 58 the code:
(("https:" == document.location.protocol) ? "https://s3.amazonaws.com/" : "

has a quote instead of semicolon. Change that line code to:

(("https:" == document.location.protocol) ? "https://s3.amazonaws.com/" : ;

And your good to go.

CommentFileSizeAuthor
#3 chart.patch769 bytesrobloach

Comments

sumnercm’s picture

Title: syntax Error in the code » Syntax Error-will fix non-reporting issue

There is a syntax error in the main code that will stop this module from working properly.
On line 58 the code:

(("https:" == document.location.protocol) ? "https://s3.amazonaws.com/" : "

has a quote instead of semicolon. Change that line code to:

(("https:" == document.location.protocol) ? "https://s3.amazonaws.com/" : ;

And your good to go.

ccshannon’s picture

Actually, the code there is also throwing JS errors. A right parenthesis is missing.

The line, according to chartbeat's code, should be:

(("https:" == document.location.protocol) ? "https://s3.amazonaws.com/" : "http://") +

Now, I'm not getting JS error.

Please confirm. Thanks.

robloach’s picture

Version: 6.x-1.1 » 6.x-1.x-dev
Status: Active » Needs review
StatusFileSize
new769 bytes

This what you meant? ;-) http://drupal.org/patch/create

ccshannon’s picture

Yes, yes, I see. I've never created a patch, and should really get in the habit. Thank you for the assist!

robloach’s picture

Status: Needs review » Fixed

Thanks a lot! Committed... Argh, messed up the commit message. Was trying to put your names in there :-( . Got your names in the release though! http://drupal.org/node/733774 :-)

ccshannon’s picture

Ha! Thanks, Rob. It's the thought that counts! Next time I'll try rolling it myself. I need to get over my irrational fears, and just stick to the rational ones.

Status: Fixed » Closed (fixed)
Issue tags: -chartbeat fix update

Automatically closed -- issue fixed for 2 weeks with no activity.