aboutsummaryrefslogtreecommitdiff
path: root/src/main/assets
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2019-04-02 23:34:50 +0300
committerGravatar Vitaly Takmazov2019-04-02 23:34:50 +0300
commit200d3dbc958a7b6bedeece613da482640db00452 (patch)
treeb2a6b71354ecde1a443456cac6912665e38c253b /src/main/assets
parent5f15bf93d7779396395e1a5ac0f4e14ade9bfea0 (diff)
fix linter warning
Diffstat (limited to 'src/main/assets')
-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');