Use this in AppState constructor for updating timer
This commit is contained in:
parent
1256b8e27c
commit
328f584d52
1 changed files with 2 additions and 2 deletions
|
|
@ -11,7 +11,7 @@ class AppState {
|
||||||
|
|
||||||
constructor() {
|
constructor() {
|
||||||
setInterval(() => {
|
setInterval(() => {
|
||||||
appState.timer += 1;
|
this.timer += 1;
|
||||||
}, 1000);
|
}, 1000);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue