mirror of
https://github.com/atom/atom.git
synced 2026-01-24 22:38:20 -05:00
Fix usage when we're given no options.
This commit is contained in:
@@ -34,7 +34,9 @@ export default class GitRepositoryAsync {
|
||||
|
||||
this._refreshingCount = 0
|
||||
|
||||
let {refreshOnWindowFocus} = options || true
|
||||
options = options || {}
|
||||
|
||||
let {refreshOnWindowFocus = true} = options
|
||||
if (refreshOnWindowFocus) {
|
||||
const onWindowFocus = () => this.refreshStatus()
|
||||
window.addEventListener('focus', onWindowFocus)
|
||||
|
||||
Reference in New Issue
Block a user