Skip to content

Commit

Permalink
新着が上の場合は逆順にする
Browse files Browse the repository at this point in the history
  • Loading branch information
pasta04 committed May 3, 2020
1 parent c6abac6 commit a54659f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
4 changes: 4 additions & 0 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

6 changes: 5 additions & 1 deletion src/main/startServer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -186,8 +186,12 @@ const taskScheduler = async () => {
if (globalThis.electron?.commentQueueList?.length > 0) {
if (globalThis.config.commentProcessType === 0) {
// 一括
const temp = [...globalThis.electron.commentQueueList];
let temp = [...globalThis.electron.commentQueueList];
globalThis.electron.commentQueueList = [];
// 新着が上の場合は逆順にする
if (!globalThis.config.dispSort) {
temp = temp.reverse();
}
sendDom(temp);
} else {
// 1個ずつ
Expand Down

0 comments on commit a54659f

Please sign in to comment.