perf: add async
This commit is contained in:
parent
58371f0200
commit
d12abf0bee
@ -37,7 +37,7 @@ export class NotificationComponent {
|
||||
|
||||
private startProgress(duration: number): void {
|
||||
const interval: number = duration / 100;
|
||||
const progressInterval = setInterval(() => {
|
||||
const progressInterval = setInterval(async () => {
|
||||
this.progress--;
|
||||
if (this.progress === 0) {
|
||||
clearInterval(progressInterval);
|
||||
|
Loading…
Reference in New Issue
Block a user