Skip to content

Commit

Permalink
fix: add async to twitter script
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed May 30, 2021
1 parent 62de848 commit 50e45e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/slidev/node/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export async function getIndexHtml({ clientRoot, themeRoots, data, userRoot }: R
}

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

main = main
.replace('__ENTRY__', toAtFS(join(clientRoot, 'main.ts')))
Expand Down

0 comments on commit 50e45e2

Please sign in to comment.