Skip to content

Commit 79e8229

Browse files
committed
fix: showSpinner
1 parent f5618e3 commit 79e8229

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/HolyProgress.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,10 @@ export class HolyProgress {
131131
this.removeBar();
132132
next();
133133
}, speed);
134-
this.removeSpinner();
134+
135+
if (this.settings.showSpinner === true) {
136+
this.removeSpinner();
137+
}
135138
}, speed);
136139
} else {
137140
setTimeout(next, speed);
@@ -189,7 +192,10 @@ export class HolyProgress {
189192
}
190193

191194
this.startTrickle();
192-
this.createSpinner();
195+
196+
if (this.settings.showSpinner === true) {
197+
this.createSpinner();
198+
}
193199

194200
return this;
195201
};

0 commit comments

Comments
 (0)