mirror of
https://github.com/zulip/zulip.git
synced 2025-11-19 22:19:48 +00:00
Change ui check to ui_report in blueslip.
This was an oversight from an old refactoring.
This commit is contained in:
@@ -156,10 +156,10 @@ function report_error(msg, stack, opts) {
|
|||||||
timeout: 3*1000,
|
timeout: 3*1000,
|
||||||
success: function () {
|
success: function () {
|
||||||
reported_errors[key] = true;
|
reported_errors[key] = true;
|
||||||
if (opts.show_ui_msg && ui !== undefined) {
|
if (opts.show_ui_msg && ui_report !== undefined) {
|
||||||
// There are a few races here (and below in the error
|
// There are a few races here (and below in the error
|
||||||
// callback):
|
// callback):
|
||||||
// 1) The ui module or something it requires might
|
// 1) The ui_report module or something it requires might
|
||||||
// not have been compiled or initialized yet.
|
// not have been compiled or initialized yet.
|
||||||
// 2) The DOM might not be ready yet and so fetching
|
// 2) The DOM might not be ready yet and so fetching
|
||||||
// the #home-error div might fail.
|
// the #home-error div might fail.
|
||||||
@@ -184,7 +184,7 @@ function report_error(msg, stack, opts) {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
error: function () {
|
error: function () {
|
||||||
if (opts.show_ui_msg && ui !== undefined) {
|
if (opts.show_ui_msg && ui_report !== undefined) {
|
||||||
ui_report.message("Oops. It seems something has gone wrong. " +
|
ui_report.message("Oops. It seems something has gone wrong. " +
|
||||||
"Please try reloading the page.",
|
"Please try reloading the page.",
|
||||||
$("#home-error"), "alert-error");
|
$("#home-error"), "alert-error");
|
||||||
|
|||||||
Reference in New Issue
Block a user