From 2ec1b9083ac52ded1a53c7a31ecde775c1881117 Mon Sep 17 00:00:00 2001 From: nyne Date: Wed, 30 Oct 2024 09:59:44 +0800 Subject: [PATCH] fix reLogin --- picacg.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/picacg.js b/picacg.js index c8f783b..2a496b5 100644 --- a/picacg.js +++ b/picacg.js @@ -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]