mirror of
https://github.com/zulip/zulip-desktop.git
synced 2025-11-02 04:53:17 +00:00
reconnect-util: Gracefully reload current webview. (#783)
Before we were destroying, removing the webview elements when we need to reload webviews which cause unwanted side-effect for example drafts not saving because no beforeunload event handler isn't run. Fixes: #767.
This commit is contained in:
committed by
Akash Nimare
parent
f0e4a3bc53
commit
613e44ef8d
@@ -35,7 +35,7 @@ class ReconnectUtil {
|
||||
.then(online => {
|
||||
if (online) {
|
||||
if (!this.alreadyReloaded) {
|
||||
this.serverManagerView.reloadView();
|
||||
this.serverManagerView.reloadCurrentView();
|
||||
}
|
||||
logger.log('You\'re back online.');
|
||||
return resolve(true);
|
||||
|
||||
Reference in New Issue
Block a user