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:
Priyank Patel
2019-07-01 14:05:50 -04:00
committed by Akash Nimare
parent f0e4a3bc53
commit 613e44ef8d

View File

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