Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(gatsby-plugin-twitter): load widget for all Twitter embeds (#12607)
Besides `.twitter-tweet`, there are other elements that Twitter widget renders: timelines, follow and share buttons - as mentioned in [Twitter developer docs](https://developer.twitter.com/en/docs/twitter-for-websites/overview.html). This small change loads the widget script if _any_ of these elements is present on the page, not only `.twitter-tweet` elements.
- Loading branch information
Showing
2 changed files
with
11 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters