mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 05:23:35 +00:00
reload: catch exceptions trying to preserve state.
This commit is contained in:
@@ -157,7 +157,12 @@ function do_reload_app(send_after_reload, save_pointer, save_narrow, save_compos
|
|||||||
|
|
||||||
// TODO: we should completely disable the UI here
|
// TODO: we should completely disable the UI here
|
||||||
if (save_pointer || save_narrow || save_compose) {
|
if (save_pointer || save_narrow || save_compose) {
|
||||||
preserve_state(send_after_reload, save_pointer, save_narrow, save_compose);
|
try {
|
||||||
|
preserve_state(send_after_reload, save_pointer, save_narrow, save_compose);
|
||||||
|
} catch (ex) {
|
||||||
|
blueslip.error('Failed to preserve state',
|
||||||
|
undefined, ex.stack);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (message === undefined) {
|
if (message === undefined) {
|
||||||
|
|||||||
Reference in New Issue
Block a user