Skip to content

Commit

Permalink
fix: showSpinner
Browse files Browse the repository at this point in the history
  • Loading branch information
tomcru committed Jan 5, 2024
1 parent f5618e3 commit 79e8229
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/HolyProgress.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,10 @@ export class HolyProgress {
this.removeBar();
next();
}, speed);
this.removeSpinner();

if (this.settings.showSpinner === true) {
this.removeSpinner();
}
}, speed);
} else {
setTimeout(next, speed);
Expand Down Expand Up @@ -189,7 +192,10 @@ export class HolyProgress {
}

this.startTrickle();
this.createSpinner();

if (this.settings.showSpinner === true) {
this.createSpinner();
}

return this;
};
Expand Down

0 comments on commit 79e8229

Please sign in to comment.