Skip to content

Commit

Permalink
Rename initial contect loader fn
Browse files Browse the repository at this point in the history
  • Loading branch information
oskarhane committed Oct 16, 2017
1 parent f360b9e commit 5ab69c9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/browser/components/DesktopIntegration/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ import { getActiveGraph, getCredentials, eventToHandler } from './helpers'
export default class DesktopIntegration extends Component {
setupListener () {
const { integrationPoint } = this.props
// Run on context updates
if (integrationPoint && integrationPoint.onContextUpdate) {
integrationPoint.onContextUpdate((event, newContext, oldContext) => {
const handlerPropName = eventToHandler(event.type)
Expand All @@ -34,7 +33,7 @@ export default class DesktopIntegration extends Component {
})
}
}
checkContextForActiveConnection () {
loadInitialContext () {
const { integrationPoint, onMount = null } = this.props
if (integrationPoint && integrationPoint.getContext) {
integrationPoint
Expand All @@ -53,7 +52,7 @@ export default class DesktopIntegration extends Component {
}
}
componentDidMount () {
this.checkContextForActiveConnection()
this.loadInitialContext()
this.setupListener()
}
render () {
Expand Down

0 comments on commit 5ab69c9

Please sign in to comment.