Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: remove usage of useTweetScript #1344

Merged
merged 2 commits into from
Feb 27, 2024
Merged

Conversation

KermanX
Copy link
Member

@KermanX KermanX commented Feb 27, 2024

This PR fixes the Tweet component again, after #1318's fix.

This PR removes useTweetScript. Because the Tweet script has been imported in

if (data.features.tweet)
body += '\n<script async src="https://platform.twitter.com/widgets.js"></script>'

Because when the feature changes, the page will be reloaded, I think this is safe to not use the script dynamically.

@KermanX KermanX merged commit daa6194 into slidevjs:main Feb 27, 2024
7 of 8 checks passed
@KermanX KermanX deleted the fix-tweet-again branch February 27, 2024 09:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant