From 200d3dbc958a7b6bedeece613da482640db00452 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Tue, 2 Apr 2019 23:34:50 +0300 Subject: fix linter warning --- src/main/assets/embed.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main') 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'); -- cgit v1.2.3