From 31ab6f15dde93b0b492831e6e5b9e7cdccd9d9e1 Mon Sep 17 00:00:00 2001 From: cyber-dream Date: Sun, 7 Aug 2022 18:56:13 +0300 Subject: [PATCH] disable checks for offline account --- app/assets/js/scripts/uibinder.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/assets/js/scripts/uibinder.js b/app/assets/js/scripts/uibinder.js index c12ae71..492f221 100644 --- a/app/assets/js/scripts/uibinder.js +++ b/app/assets/js/scripts/uibinder.js @@ -77,7 +77,8 @@ function showMainUI(data){ // If this is enabled in a development environment we'll get ratelimited. // The relaunch frequency is usually far too high. - if(!isDev && isLoggedIn){ + //if(!isDev && isLoggedIn){ + if(isLoggedIn){ validateSelectedAccount() } @@ -322,7 +323,7 @@ function refreshDistributionIndex(remote, onSuccess, onError){ async function validateSelectedAccount(){ const selectedAcc = ConfigManager.getSelectedAccount() - if(selectedAcc != null){ + if(selectedAcc != null && selectedAcc.type != 'offline'){ const val = await AuthManager.validateSelected() if(!val){ ConfigManager.removeAuthAccount(selectedAcc.uuid)