Do not use window reload

Summary: Let's keep it simple, do not reload. Just show/hide the right content.

Reviewed By: antonk52

Differential Revision: D49377316

fbshipit-source-id: 9b2a47374da3e72f17e2d55c9290960b703fd43e
This commit is contained in:
Lorenzo Blasa
2023-09-18 12:03:09 -07:00
committed by Facebook GitHub Bot
parent 2fd8003fd8
commit f1c88a464b
3 changed files with 30 additions and 15 deletions

View File

@@ -19,7 +19,6 @@ if (loadingContainer) {
let cachedFile: {name: string; data: string} | undefined;
let cachedDeepLinkURL: string | undefined;
let once: boolean = false;
async function start() {
// @ts-ignore
electronRequire = function (path: string) {
@@ -76,10 +75,6 @@ async function start() {
window.flipperShowMessage?.('Connecting to server...');
break;
case FlipperServerState.CONNECTED:
if (once) {
return window.location.reload();
}
once = true;
window.flipperHideMessage?.();
break;
case FlipperServerState.DISCONNECTED: