disable checks for offline account

This commit is contained in:
cyber-dream 2022-08-07 18:56:13 +03:00
parent 960214efdf
commit 31ab6f15dd

View File

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