Factor our getting root node into utils fn
Co-authored-by Jared Scheib <jared.scheib@gmail.com> Co-authored-by Brandon Farmer <bthesorceror@gmail.com>pull/10616/head
parent
cf7be217d2
commit
94835f36f7
|
@ -11,6 +11,8 @@ import {bindActionCreators} from 'redux'
|
|||
import configureStore from 'src/store/configureStore'
|
||||
import {loadLocalStorage} from 'src/localStorage'
|
||||
|
||||
import {getRootNode} from 'src/utils/nodes'
|
||||
|
||||
import App from 'src/App'
|
||||
import {
|
||||
Login,
|
||||
|
@ -48,7 +50,7 @@ import {HEARTBEAT_INTERVAL} from 'src/shared/constants'
|
|||
|
||||
const errorsQueue = []
|
||||
|
||||
const rootNode = document.getElementById('react-root')
|
||||
const rootNode = getRootNode()
|
||||
|
||||
declare global {
|
||||
interface Window {
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
export const getRootNode = () => document.getElementById('react-root')
|
Loading…
Reference in New Issue