Skip to content

Commit 90235fd

Browse files
authored
Merge pull request #96 from gnom7/prepare_v310
Remove unnecessary code
2 parents 3e7a0a9 + ec6eb39 commit 90235fd

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/lib/components/ng-http-loader.component.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,8 @@ export class NgHttpLoaderComponent implements OnDestroy, OnInit {
112112
}
113113

114114
private handleSpinnerVisibility(showSpinner: boolean): void {
115-
const now = Date.now();
116-
if (showSpinner && this.visibleUntil <= now) {
117-
this.visibleUntil = now + this.minDuration;
115+
if (showSpinner) {
116+
this.visibleUntil = Date.now() + this.minDuration;
118117
}
119118
this.isSpinnerVisible = showSpinner;
120119
}

0 commit comments

Comments
 (0)