aboutsummaryrefslogtreecommitdiff
path: root/src/main/assets/embed.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/assets/embed.js')
-rw-r--r--src/main/assets/embed.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/assets/embed.js b/src/main/assets/embed.js
index 6a11e5cf..02c48038 100644
--- a/src/main/assets/embed.js
+++ b/src/main/assets/embed.js
@@ -251,7 +251,7 @@ function getEmbeddableLinkTypes() {
if (window.twttr) {
// https://developer.twitter.com/en/docs/twitter-for-websites/javascript-api/guides/scripting-loading-and-initialization
- setTimeout(function() { twttr.widgets.load(div); }, 0);
+ window.twttr.widgets.load(div);
} else {
// innerHTML cannot insert scripts, so...
let script = document.createElement('script');