Treat twitter widget js more defensively

This commit is contained in:
Steve Purcell 2014-05-27 11:41:15 +01:00
parent 0fe0baf62e
commit cd32b0f7ce

View file

@ -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);