Skip to content
This repository has been archived by the owner on Mar 3, 2023. It is now read-only.

Commit

Permalink
🎨 Replace bound functions with arrow functions
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasjo committed Jun 4, 2018
1 parent c80e701 commit c7935c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main-process/atom-application.js
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,8 @@ class AtomApplication extends EventEmitter {
if (!this.configFilePromise) {
this.configFilePromise = this.configFile.watch()
this.disposable.add(await this.configFilePromise)
this.config.onDidChange('core.titleBar', this.promptForRestart.bind(this))
this.config.onDidChange('core.colorProfile', this.promptForRestart.bind(this))
this.config.onDidChange('core.titleBar', () => this.promptForRestart())
this.config.onDidChange('core.colorProfile', () => this.promptForRestart())
}

const optionsForWindowsToOpen = []
Expand Down

0 comments on commit c7935c5

Please sign in to comment.