Initial IE 11 support. Add babel polyfill. Fix a small event error.
parent
879a16f9fb
commit
812d7c0147
|
@ -1,3 +1,5 @@
|
||||||
|
import 'babel-polyfill'
|
||||||
|
|
||||||
import React from 'react'
|
import React from 'react'
|
||||||
import {render} from 'react-dom'
|
import {render} from 'react-dom'
|
||||||
import {Provider} from 'react-redux'
|
import {Provider} from 'react-redux'
|
||||||
|
|
|
@ -7,7 +7,9 @@ export default function resizeLayout() {
|
||||||
action.type === 'ENABLE_PRESENTATION_MODE' ||
|
action.type === 'ENABLE_PRESENTATION_MODE' ||
|
||||||
action.type === 'DISABLE_PRESENTATION_MODE'
|
action.type === 'DISABLE_PRESENTATION_MODE'
|
||||||
) {
|
) {
|
||||||
window.dispatchEvent(new Event('resize'))
|
const evt = document.createEvent('HTMLEvents')
|
||||||
|
evt.initEvent('resize', false, true)
|
||||||
|
window.dispatchEvent(evt)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue