update UI after errors

This commit is contained in:
Feross Aboukhadijeh
2016-03-02 02:08:18 -08:00
parent 1350e3c5b5
commit a17bf15382

View File

@@ -56,7 +56,6 @@ function init () {
init()
function update () {
console.log('update')
var newVDom = App(state, handler)
var patches = diff(currentVDom, newVDom)
rootElement = patch(rootElement, patches)
@@ -195,6 +194,7 @@ function closePlayer () {
function onError (err) {
console.error(err.stack)
window.alert(err.message || err)
update()
}
function onWarning (err) {