Socialite icon indicating copy to clipboard operation
Socialite copied to clipboard

Twitter conflict with Anywhere

Open diniscorreia opened this issue 13 years ago • 2 comments

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?

diniscorreia avatar Dec 10 '12 14:12 diniscorreia

I work fine after this modification.

cauliturtle avatar Jul 23 '13 11:07 cauliturtle

I'll integrate the fix into v2.1

tmort avatar Sep 20 '13 16:09 tmort