fix reLogin

This commit is contained in:
nyne
2024-10-30 09:59:44 +08:00
parent c8660de48a
commit 2ec1b9083a

View File

@@ -52,7 +52,7 @@ class Picacg extends ComicSource {
throw new Error('Not logged in');
}
let account = this.loadData('account')
if(Array.isArray(account)) {
if(!Array.isArray(account)) {
throw new Error('Failed to reLogin: Invalid account data');
}
let username = account[0]