Skip to content

Commit 52c96f7

Browse files
committed
Not waiting if in online mode
1 parent ba9ca3a commit 52c96f7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/routes/+page.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
progress++;
5858
5959
// Account for rate limit
60-
if(i % 20 == 0) {
60+
if(i % 20 == 0 && !api.isOffline()) {
6161
await wait(1000);
6262
}
6363
}
@@ -67,7 +67,7 @@
6767
progress++;
6868
6969
// Account for rate limit
70-
if(i % 20 == 0) {
70+
if(i % 20 == 0 && !api.isOffline()) {
7171
await wait(1000);
7272
}
7373
}

0 commit comments

Comments
 (0)