update UI after errors
This commit is contained in:
@@ -56,7 +56,6 @@ function init () {
|
|||||||
init()
|
init()
|
||||||
|
|
||||||
function update () {
|
function update () {
|
||||||
console.log('update')
|
|
||||||
var newVDom = App(state, handler)
|
var newVDom = App(state, handler)
|
||||||
var patches = diff(currentVDom, newVDom)
|
var patches = diff(currentVDom, newVDom)
|
||||||
rootElement = patch(rootElement, patches)
|
rootElement = patch(rootElement, patches)
|
||||||
@@ -195,6 +194,7 @@ function closePlayer () {
|
|||||||
function onError (err) {
|
function onError (err) {
|
||||||
console.error(err.stack)
|
console.error(err.stack)
|
||||||
window.alert(err.message || err)
|
window.alert(err.message || err)
|
||||||
|
update()
|
||||||
}
|
}
|
||||||
|
|
||||||
function onWarning (err) {
|
function onWarning (err) {
|
||||||
|
|||||||
Reference in New Issue
Block a user