Skip to content

Commit 5a7dd18

Browse files
committed
Update jd_hd.js
1 parent 4455667 commit 5a7dd18

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Script/jd_hd.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,8 @@ try {
390390
let $dom = $clickDom;
391391
async function* asyncGenerator() {
392392
let i = 0;
393-
while (i < Number(${clickNum}) && "${clickClassName2}" === "") {
393+
const num = "${clickClassName2}" === "" ? 0 : Number(${clickNum});
394+
while (i < num) {
394395
yield i++;
395396
}
396397
}

0 commit comments

Comments
 (0)