From cd32b0f7ce2823981303985f68c8d9c1332e0114 Mon Sep 17 00:00:00 2001 From: Steve Purcell Date: Tue, 27 May 2014 11:41:15 +0100 Subject: [PATCH] Treat twitter widget js more defensively --- html/js/melpa.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/html/js/melpa.js b/html/js/melpa.js index 68c74a15..611e21c5 100644 --- a/html/js/melpa.js +++ b/html/js/melpa.js @@ -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);