aboutsummaryrefslogtreecommitdiffstats
path: root/twittperator
diff options
context:
space:
mode:
authoranekos2012-08-16 22:44:38 +0900
committeranekos2012-08-16 22:44:38 +0900
commit3ad3428b1153d598210e4e49ee414a9febd56163 (patch)
tree63c0b490596dd50744cf38152c4afb1ceb53d052 /twittperator
parent5c08fa58051c8315c042e193a1049e1b9f6f58e3 (diff)
downloadvimperator-plugins-3ad3428b1153d598210e4e49ee414a9febd56163.tar.bz2
Revert?
Diffstat (limited to 'twittperator')
-rw-r--r--twittperator/twsidebar-expand-url.tw12
1 files changed, 7 insertions, 5 deletions
diff --git a/twittperator/twsidebar-expand-url.tw b/twittperator/twsidebar-expand-url.tw
index 8eee68d..1f684be 100644
--- a/twittperator/twsidebar-expand-url.tw
+++ b/twittperator/twsidebar-expand-url.tw
@@ -56,11 +56,13 @@ require('twsidebar');
expandURL(urls[i].expanded_url, function (eUrl , expand) {
tweet.text = tweet.text.replace(sUrl, eUrl);
let fUrl = expand ? sUrl : eUrl;
- let e = twsText(id);
- if (e) {
- e.textContent = escapeBreakers(e.textContent.replace(fUrl, Config.filter(eUrl)));
- scroll();
- }
+ setTimeout(function () {
+ let e = twsText(id);
+ if (e) {
+ e.textContent = escapeBreakers(e.textContent.replace(fUrl, Config.filter(eUrl)));
+ scroll();
+ }
+ }, 100);
});
}
}