mirror of https://github.com/zulip/zulip.git
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:
parent
9e6ab7f190
commit
bbf45593cb
|
@ -219,7 +219,7 @@ exports.exception_msg = function blueslip_exception_msg(ex) {
|
||||||
|
|
||||||
$(window).on('error', function (event) {
|
$(window).on('error', function (event) {
|
||||||
var ex = event.originalEvent.error;
|
var ex = event.originalEvent.error;
|
||||||
if (ex instanceof BlueslipError) {
|
if (!ex || ex instanceof BlueslipError) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
var message = exports.exception_msg(ex);
|
var message = exports.exception_msg(ex);
|
||||||
|
|
Loading…
Reference in New Issue