Skip to content

Commit

Permalink
Fix lost init code
Browse files Browse the repository at this point in the history
  • Loading branch information
oskarhane committed Jan 7, 2020
1 parent 486a31c commit dac90bc
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/browser/AppInit.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ import { BusProvider } from 'react-suber'
import App from './modules/App/App'
import reducers from 'shared/rootReducer'
import epics from 'shared/rootEpic'
import RelateApiProvider from 'browser-components/relate-api/relate-api-provider'

import { createReduxMiddleware, getAll, applyKeys } from 'services/localstorage'
import { APP_START } from 'shared/modules/app/appDuck'
Expand Down Expand Up @@ -83,20 +84,21 @@ bus.applyMiddleware((_, origin) => (channel, message, source) => {
// Introduce environment to be able to fork functionality
const env = detectRuntimeEnv(window, NEO4J_CLOUD_DOMAINS)

// URL we're on
const url = window.location.href

// Signal app upstart (for epics)
store.dispatch({ type: APP_START, url: window.location.href, env })
store.dispatch({ type: APP_START, url, env })

const AppInit = () => {
return (
<Provider store={store}>
<BusProvider bus={bus}>
<>
<GlobalStyle />
<App
desktopIntegrationPoint={
window && window.neo4jDesktopApi ? window.neo4jDesktopApi : null
}
/>
<RelateApiProvider urlString={url}>
<App />
</RelateApiProvider>
</>
</BusProvider>
</Provider>
Expand Down

0 comments on commit dac90bc

Please sign in to comment.