Initial IE 11 support. Add babel polyfill. Fix a small event error.

pull/10616/head
Hunter Trujillo 2017-07-10 17:10:45 -06:00
parent 879a16f9fb
commit 812d7c0147
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,5 @@
import 'babel-polyfill'
import React from 'react'
import {render} from 'react-dom'
import {Provider} from 'react-redux'

View File

@ -7,7 +7,9 @@ export default function resizeLayout() {
action.type === 'ENABLE_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)
}
}
}