Skip to content

Commit

Permalink
changed private property name
Browse files Browse the repository at this point in the history
  • Loading branch information
Gonzalo Lopez committed Nov 14, 2024
1 parent a92f6dc commit 0a392ba
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/event-tracker.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,19 +25,19 @@ class EventTracker{
this.db = new Database(filename);
this.appCurrentState = AppState.currentState;
this._handleAppStateChange = this._handleAppStateChange.bind(this);
this._appFocused = false;
this._focus = false;
}

get isFocused() {
return this._appFocused;
return this._focus;
}

/**
* @param {boolean} bool
*/
set setFocus(bool) {
if(typeof bool !== 'boolean') return;
this._appFocused = bool;
this._focus = bool;
}
/**
* Adds an event to the database after performing validations.
Expand Down

0 comments on commit 0a392ba

Please sign in to comment.