From ae032cb557f784c620fc12c64cfcc0f9ad85c685 Mon Sep 17 00:00:00 2001 From: zeppi Date: Mon, 11 Jan 2021 18:34:48 -0500 Subject: [PATCH] disable authinprogress for now --- ui/redux/actions/user.js | 39 ++++++++++++++++++++------------------- 1 file changed, 20 insertions(+), 19 deletions(-) diff --git a/ui/redux/actions/user.js b/ui/redux/actions/user.js index 9c85074fc..3332d5f01 100644 --- a/ui/redux/actions/user.js +++ b/ui/redux/actions/user.js @@ -93,25 +93,26 @@ export function doInstallNewWithParams( function checkAuthBusy() { return new Promise(function(resolve, reject) { (function waitForAuth() { - try { - sessionStorage.setItem('test', 'available'); - sessionStorage.removeItem('test'); - sessionStorageAvailable = true; - } catch (e) { - if (e) { - // no session storage - } - } - if (!IS_WEB || !sessionStorageAvailable) { - return resolve(); - } - const inProgress = window.sessionStorage.getItem(AUTH_IN_PROGRESS); - if (!inProgress) { - window.sessionStorage.setItem(AUTH_IN_PROGRESS, 'true'); - return resolve(); - } else { - setTimeout(waitForAuth, 200); - } + // try { + // sessionStorage.setItem('test', 'available'); + // sessionStorage.removeItem('test'); + // sessionStorageAvailable = true; + // } catch (e) { + // if (e) { + // // no session storage + // } + // } + // if (!IS_WEB || !sessionStorageAvailable) { + // return resolve(); + // } + // const inProgress = window.sessionStorage.getItem(AUTH_IN_PROGRESS); + // if (!inProgress) { + // window.sessionStorage.setItem(AUTH_IN_PROGRESS, 'true'); + // return resolve(); + // } else { + // setTimeout(waitForAuth, 200); + // } + return resolve(); })(); }); }