Skip to content

Commit

Permalink
Change processing when logged out
Browse files Browse the repository at this point in the history
  • Loading branch information
tanbatu committed Sep 18, 2023
1 parent fb0829a commit 3699f46
Show file tree
Hide file tree
Showing 2 changed files with 737 additions and 541 deletions.
11 changes: 8 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -161,12 +161,17 @@ async function LOADCOMMENT(mode) {
continue;
}
if (res?.meta?.errorCode === "INVALID_TOKEN") {
logger("旧コメントAPIに切り替えています...");
logger("ログインしていません。");
alert(
"【コメント増量】ログアウト状態です。ログインをして再度実行してください。"
);
document.getElementById("loading").style.display = "none";
document.getElementById("allcommentsetting").style.display = "none";
isLoggedIn = false;
j--;
totalThreadCount /= 3;
await prepareLegacy();
continue;
//await prepareLegacy();
//continue;
}
(thread.fork === "owner" ? ownerComments : comments).push(
...res.data.threads[0].comments
Expand Down
Loading

0 comments on commit 3699f46

Please sign in to comment.