We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a6e83e9 commit 25f02d2Copy full SHA for 25f02d2
1 file changed
src/status-bar-items/mob-status-bar-item.ts
@@ -48,7 +48,6 @@ export class MobStatusBarItem {
48
}
49
50
public startCountDown(minutes: number) {
51
- const self = this;
52
let seconds = minutes * 60;
53
54
if(this._lastSetInterval !== null) {
@@ -57,16 +56,16 @@ export class MobStatusBarItem {
57
56
58
59
60
- const setIntervalId = setInterval(function () {
+ const setIntervalId = setInterval(() => {
61
var date = new Date(0);
62
date.setSeconds(seconds);
63
var timeString = date.toISOString().substring(11, 19);
64
65
- self._statusBarItem.text = `$(${self._props.icon}) ${timeString}`;
+ this._statusBarItem.text = `$(${this._props.icon}) ${timeString}`;
66
67
if (--seconds < 0) {
68
clearInterval(setIntervalId);
69
- self.stopLoading();
+ this.stopLoading();
70
71
}, 1000);
72
0 commit comments