Beware of twttr initialization code


#1

The code example at https://dev.twitter.com/web/tweet-button#using-javascript
if executed twice, will set window.twttr to undefined. Should return the already set window.twttr in this case.

Posted here because of https://dev.twitter.com/faq#8
Dont know though if this is the right place.


#2

Thanks for the report, we’ll get that fixed ASAP.


#3

Thank you for this, 7ur1ng. I’ve updated our documentation to ensure twttr is always defined correctly. Great catch.

Ben


#4