From bbf45593cbd53269e027f74b09280a70b2755928 Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Tue, 9 Jul 2019 17:15:07 -0700 Subject: [PATCH] blueslip: Ignore error events with null error. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Chrome generates these to report things like “ResizeObserver loop limit exceeded” (which is harmless). Signed-off-by: Anders Kaseorg --- static/js/blueslip.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/js/blueslip.js b/static/js/blueslip.js index 560b7043e4..8bc68ab9ec 100644 --- a/static/js/blueslip.js +++ b/static/js/blueslip.js @@ -219,7 +219,7 @@ exports.exception_msg = function blueslip_exception_msg(ex) { $(window).on('error', function (event) { var ex = event.originalEvent.error; - if (ex instanceof BlueslipError) { + if (!ex || ex instanceof BlueslipError) { return; } var message = exports.exception_msg(ex);