tmort / Socialite

Other
1.68k stars 163 forks source link

Twitter conflict with Anywhere #51

Open diniscorreia opened 11 years ago

diniscorreia commented 11 years ago

I'm trying to use Socialite on a site that is still using Twitter's Anywhere. To makes things worse, the script is being loaded synchronously and there's no way I can change that.

Anyways, I was getting an error and I tracked it down https://github.com/dbushell/Socialite/issues/22[issue 22] - basically window.twttr exists, but the .ready() method isn't available. I tried your suggested workaround and the error stops - but the widget is not generated correctly (I get the socialite-loaded class, but instead of the iframe I just see the fallback link).

Weirdly enough, if I comment out the whole twttr check it works.

Any ideias?

cauliturtle commented 11 years ago

I work fine after this modification.

tmort commented 10 years ago

I'll integrate the fix into v2.1