Skip to content

Commit 5ab69c9

Browse files
committed
Rename initial contect loader fn
1 parent f360b9e commit 5ab69c9

File tree

1 file changed

+2
-3
lines changed
  • src/browser/components/DesktopIntegration

1 file changed

+2
-3
lines changed

src/browser/components/DesktopIntegration/index.jsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ import { getActiveGraph, getCredentials, eventToHandler } from './helpers'
2424
export default class DesktopIntegration extends Component {
2525
setupListener () {
2626
const { integrationPoint } = this.props
27-
// Run on context updates
2827
if (integrationPoint && integrationPoint.onContextUpdate) {
2928
integrationPoint.onContextUpdate((event, newContext, oldContext) => {
3029
const handlerPropName = eventToHandler(event.type)
@@ -34,7 +33,7 @@ export default class DesktopIntegration extends Component {
3433
})
3534
}
3635
}
37-
checkContextForActiveConnection () {
36+
loadInitialContext () {
3837
const { integrationPoint, onMount = null } = this.props
3938
if (integrationPoint && integrationPoint.getContext) {
4039
integrationPoint
@@ -53,7 +52,7 @@ export default class DesktopIntegration extends Component {
5352
}
5453
}
5554
componentDidMount () {
56-
this.checkContextForActiveConnection()
55+
this.loadInitialContext()
5756
this.setupListener()
5857
}
5958
render () {

0 commit comments

Comments
 (0)