mirror of
https://github.com/correl/melpa.git
synced 2024-12-24 03:00:13 +00:00
Treat twitter widget js more defensively
This commit is contained in:
parent
0fe0baf62e
commit
cd32b0f7ce
1 changed files with 1 additions and 1 deletions
|
@ -431,7 +431,7 @@
|
|||
// Lazily initialise twitter widgets as they appear
|
||||
//////////////////////////////////////////////////////////////////////////////
|
||||
window.setInterval(function() {
|
||||
if (window.twttr) window.twttr.widgets.load();
|
||||
if (window.twttr && window.twttr.widgets) window.twttr.widgets.load();
|
||||
}, 100);
|
||||
|
||||
})(window.m, window.document, window._, window.moment);
|
||||
|
|
Loading…
Reference in a new issue