mirror of
https://github.com/venera-app/venera-configs.git
synced 2025-09-27 16:37:23 +00:00
fix reLogin
This commit is contained in:
@@ -52,7 +52,7 @@ class Picacg extends ComicSource {
|
|||||||
throw new Error('Not logged in');
|
throw new Error('Not logged in');
|
||||||
}
|
}
|
||||||
let account = this.loadData('account')
|
let account = this.loadData('account')
|
||||||
if(Array.isArray(account)) {
|
if(!Array.isArray(account)) {
|
||||||
throw new Error('Failed to reLogin: Invalid account data');
|
throw new Error('Failed to reLogin: Invalid account data');
|
||||||
}
|
}
|
||||||
let username = account[0]
|
let username = account[0]
|
||||||
|
Reference in New Issue
Block a user