blueslip: Ignore error events with null error.

Chrome generates these to report things like “ResizeObserver loop
limit exceeded” (which is harmless).

Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
This commit is contained in:
Anders Kaseorg 2019-07-09 17:15:07 -07:00 committed by Tim Abbott
parent 9e6ab7f190
commit bbf45593cb
1 changed files with 1 additions and 1 deletions

View File

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