diff options
author | Vitaly Takmazov | 2019-04-02 23:34:50 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2019-04-02 23:34:50 +0300 |
commit | 200d3dbc958a7b6bedeece613da482640db00452 (patch) | |
tree | b2a6b71354ecde1a443456cac6912665e38c253b /src/main | |
parent | 5f15bf93d7779396395e1a5ac0f4e14ade9bfea0 (diff) |
fix linter warning
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/assets/embed.js | 2 |
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'); |